Showing posts with label Operating System. Show all posts
Showing posts with label Operating System. Show all posts

Thursday, November 29

Deleting a linux file with spaces

It is a common issue and can be found on many blogsites how to delete a file/s with spaces. But I want to share my own version. The solution for this problem is to use a quotation mark "" (quotes), backslash or the tab key.

Trying to create a file:
#touch filename test 1
# ls -al
total 24
drwxr-xr-x 2 root root 4096 Nov 29 23:17 .
drwxr-x--- 38 root root 16384 Nov 29 23:17 ..
-rw-r--r-- 1 root root 0 Nov 29 23:17 1
-rw-r--r-- 1 root root 0 Nov 29 23:17 filename
-rw-r--r-- 1 root root 0 Nov 29 23:17 test

Using quotes:
#touch "filename test 1"
#ls -al
total 24
drwxr-xr-x 2 root root 4096 Nov 29 23:20 .
drwxr-x--- 38 root root 16384 Nov 29 23:17 ..
-rw-r--r-- 1 root root 0 Nov 29 23:20 filename test 1

Listing file/s with spaces:
#ls -la filename test 1
ls: filename: No such file or directory
ls: test: No such file or directory
ls: 1: No such file or directory

Listing file/s with quotes and backslash:
#ls -la "filename test 1"
-rw-r--r-- 1 root root 0 Nov 29 23:20 filename test 1

or


# ls -la filename\ test\ 1
-rw-r--r-- 1 root root 0 Nov 29 23:20 filename test

or using the tab button
#ls -al filename
then hit TAB key and all filename* will show up and type the next character

Removing file without quotes
# rm filename test 1
rm: cannot lstat `filename': No such file or directory
rm: cannot lstat `test': No such file or directory
rm: cannot lstat `1': No such file or directory

Using quotes in removing file with spaces:
# rm "filename test 1"
rm: remove regular empty file `filename test 1'? y

Moving/ Renaming directory w/o quotes
# ls -la
total 28
drwxr-xr-x 3 root root 4096 Nov 29 23:32 .
drwxr-x--- 38 root root 16384 Nov 29 23:17 ..
drwxr-xr-x 2 root root 4096 Nov 29 23:29 folder test 1
Note: folder test 1 is a directory

#mv folder test 1 foldertest1
mv: target `foldertest1' is not a directory

Using quotes:
# mv "folder test 1" foldertest1
# ls -la
total 28
drwxr-xr-x 3 root root 4096 Nov 29 23:34 .
drwxr-x--- 38 root root 16384 Nov 29 23:17 ..
drwxr-xr-x 2 root root 4096 Nov 29 23:29 foldertest1

or Using the backslash

# mv folder\ test\ 2 foldertest2
# ls -la
total 28
drwxr-xr-x 3 root root 4096 Nov 29 23:36 .
drwxr-x--- 38 root root 16384 Nov 29 23:17 ..
drwxr-xr-x 2 root root 4096 Nov 29 23:29 foldertest2


Deleting directory with quotes
# rm -rf "folder test 2"
# ls -la
total 24
drwxr-xr-x 2 root root 4096 Nov 29 23:38 .
drwxr-x--- 38 root root 16384 Nov 29 23:17 ..

or Using backslash or tab key











Tuesday, November 27

Why Linux ?

Linux is now rapidly becoming the operating system of choice in many core areas of business. It is transforming information technology in many exciting ways from being used in products ranging from cell phones and PDAs to cars and mainframe computers. In addition to being cost-effective, it is constantly being updated and refined with the latest technologies. As Linux gains greater acceptance in todays Information and Communication Technology, more and more companies are supporting Linux both application and hardware compatibility.

Like its many uses, Linux has a variety of printed and electronic guides to show you what to do. The specialist guides are highly detailed focusing on narrow areas of excellence. The encyclopedic guides for beginners focus on Linux fundamentals and then only introduce you to more specialized topics. Everyone can start learning this spectacular and versatile Operating System from beginner users to having the confidence of an expert.

Types of Linux:

Distribution PCLinuxOS
Home Page http://www.pclinuxos.com/
Origin USA
Mailing Lists http://docs.mypclinuxos.com/Mailing-list
User Forums http://www.pclinuxos.com/index.php?option=com_smf&Itemid=58
Alternative
User Forums
LinuxForumsLinuxQuestions.org
Documentation http://docs.pclinuxos.com/



Distribution Ubuntu
Home Page http://www.ubuntu.com/
Origin Isle of Man
Mailing Lists http://lists.ubuntu.com/mailman/listinfo/
User Forums Ubuntu Forums
Alternative
User Forums
LinuxForumsLinuxQuestions.org
Documentation https://wiki.ubuntu.com/UserDocumentation





Distribution
openSUSE
(formerly SUSE Linux)
Home Page http://www.opensuse.org/
Origin Germany
Mailing Lists http://en.opensuse.org/Communicate/Mailinglists
User Forums SUSE ForumsNovell Support Forum
ForumsLinuxQuestions.org

Unixboard.de (German)
Polskie Forum SUSE
Linux (Polish)
LinuxForo (Spanish)
openSUSE Forum
(Swedish)
Alternative
User Forums
LinuxForumsLinuxQuestions.org
Documentation http://en.opensuse.org/Documentation
SUSE Support Knowledge Base



Distribution Fedora Project
Home Page http://fedoraproject.org/
Origin USA
Mailing Lists http://fedoraproject.org/wiki/Communicate
User Forums Fedora Forum
Alternative
User Forums
LinuxQuestions.orgLinuxForums
Documentation http://docs.fedoraproject.org/
http://fedoraproject.org/wiki/Docs



Distribution Sabayon Linux (formerly RR4 Linux and RR64 Linux)
Home Page http://www.sabayonlinux.org/
Origin Italy
User Forums http://forum.sabayonlinux.org/
Alternative
User Forums
LinuxQuestions.orgLinuxForums
Documentation http://wiki.sabayonlinux.org/


Distribution Debian GNU/Linux
Home Page http://www.debian.org/
Origin Global
Mailing Lists http://lists.debian.org/
User Forums Debian User ForumsLinuxQuestions.orgDebianForum.de (German) • Unixboard.de (German) • Debian Srbija forumi (Serbian) • esDebian (Spanish)
Alternative
User Forums
LinuxQuestions.orgLinuxForums
Documentation http://www.debian.org/doc/
Debianizzati (Italian)



Distribution Mandriva Linux
Home Page http://www.mandrivalinux.com/
http://www.mandriva.com/
Origin France
Mailing Lists http://www.mandriva.com/en/mailing_lists
User Forums http://forum.mandrivaclub.com/
Mandriva UsersMandiNux (French) • MandrivaUser.de (German) •
Unixboard.de (German)
Alternative
User Forums
LinuxQuestions.orgLinuxForums
Documentation http://www.mandriva.com/en/community/users/documentation

Distribution MEPIS
Home Page http://www.mepis.org/
Origin USA
User Forums http://www.mepislovers.org/
Alternative
User Forums
LinuxQuestions.orgLinuxForums
Documentation http://mepis.com/docs/

Distribution The Slackware Linux Project
Home Page http://www.slackware.com/
Origin USA
Mailing Lists http://www.slackware.com/lists/
http://mailman.lug.org.uk/mailman/listinfo/slackware (unofficial)
User Forums Slackware HelpLinuxQuestions.orgForum Slackware (Polish) • SlackBR (Portuguese)
Alternative
User Forums
LinuxForumsLinuxQuestions.org
Documentation The Revised Slackware Book ProjectSlackware Basics


Distribution CentOS
Home Page http://www.centos.org/
Origin Global
Mailing Lists http://www.centos.org/modules/tinycontent/
User Forums http://www.centos.org/modules/newbb/
Alternative
User Forums
LinuxQuestions.orgLinuxForums


Distribution Damn Small Linux
Home Page http://www.damnsmalllinux.org/
Origin USA
User Forums http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi
Alternative
User Forums
LinuxQuestions.orgLinuxForums


Distribution KNOPPIX
Home Page http://www.knoppix.org/ (German)
http://www.knoppix.com/ (English)
Origin Germany
Mailing Lists http://lists.debian.org/debian-knoppix/
User Forums http://www.knoppix.net/forum/
http://knoppix.crealabs.it/ (Italian)
Alternative
User Forums
LinuxQuestions.orgLinuxForums
Documentation http://www.knoppix.net/docs/


Distribution FreeBSD
Home Page http://www.freebsd.org/
Origin USA
Mailing Lists http://www.freebsd.org/community/mailinglists.html
User Forums FreeBSDForums.org (unofficial)
Alternative
User Forums
LinuxForumsLinuxQuestions.org
Documentation http://www.freebsd.org/docs.html


Sunday, November 25

Nokia N810 Internet Tablet

The N810 is now available and its the first of Nokia's Linux-based tablets to feature a full Mozilla-based browser, although a user-installable Mozilla-based browser was available for the N800. The new device's browser aims to let users enjoy the most sophisticated "Web 2.0" social networking sites with an experience very similar to Firefox on the desktop.



The N810 is smaller, heavier, and faster than the older N800, with new features that include a slide-out hardware QWERTY thumb keyboard, GPS receiver, FM transmitter (for in-car listening), and a light-sensing screen dimmer.





Technical Specification:

General


Size
Volume: 128 cc
Weight: 226 g
Length: 72 mm
Width: 128 mm
Thickness: 14 mm


Display
High-resolution 4.13" WVGA display (800 x 480 pixels) with up to 65,000 colors



Processor
TI OMAP 2420, 400Mhz


Memory
DDR RAM 128MB
Flash 256MB


Storage
Up to 2GB internal memory
Support for compatible miniSD and microSD memory cards (with extender). Supports cards up to 8GB. (SD cards over 2GB must be SDHC compatible.)


Operating times*
Battery: Nokia Maps BP-4L
Continuous usage (display on, wireless LAN active): up to 4 hours
Music playback: up to 10 hours
Always online time: up to 5 days
Standby time: up to 14 days
*Operating times may vary depending on the radio access technology used, configuration and usage. The availability of the product and its features depend on your area and service providers, so please contact them and your Nokia dealer for further information.


Other characteristics
Smooth slide with integrated QWERTY keyboard
Built-in GPS receiver
High quality stereo speakers and sensitive microphone
High-resolution widescreen display
Integrated desk stand
Integrated VGA web camera
HW key to lock touch screen and keys
Ambient light sensor


Connectivity
WLAN standard: IEEE 802.11b/g
Bluetooth specification v. 2.0 +EDR
Profiles supported: HID, FTP, DUN, GAP, SPP, HSP, SAP and OPP
USB 2.0 high speed
3.5 mm stereo headphone plug (Nokia AV Connector)


Language support
HW keyboard variants: English, German, French, Italian, Spanish-Portuguese, Scandinavian and Russian
User interface languages: British English, French, German, Italian, Spanish, American English, Brazilian Portuguese, Canadian French, Latin American Spanish, Danish, Swedish, Finnish, Russian, Dutch, Norwegian, Portuguese
User guide languages: British English, French, German, Italian, Spanish, American English, Brazilian Portuguese, Canadian French, Latin American Spanish, Danish, Swedish, Finnish, Russian, Dutch, Norwegian, Portuguese, Arabic




Internet Tablet OS: maemo Linux based OS2008
General

Easy install for new applications, applets, and personalization
Operating system updates available over the Internet


Web Browsing
Browser based on Mozilla technology with state-of-the-art web standard support including AJAX
Page navigation with scrolling, panning or using hardware buttons, zooming in and out of web sites.
Full desktop Adobe® Flash® 9 plugin, including video and audio streaming


Media
In-built media player for viewing and listening to downloaded, transfered or streamed media content and easy-on-device management of media library
Direct access to shared media over Universal Plug and Play (UPnP)
Supported video formats: 3GP, AVI, WMV, MP4, H263, H.264, MPEG-1, MPEG-4, RV (RealVideo)
Supported audio formats: MP3, WMA, AAC, AMR, AWB, M4A, MP2, RA (RealAudio), WAV
Supported playlist formats: M3U, PLS, ASX, WAX, WVX, WPL


Communications
Internet messaging and calling with video
Effortless and automated presence and contacts application for centralizing communication tasks
SIP support and interoperability with industry standard services


Map
Map application with pre-loaded maps including points of interests
Premium services available on purchase including Wayfinder navigation(the voice-guided navigation service is expected to be available in December 2007).


E-mail
Browser access to familiar webmail services
E-mail application for personal e-mail usage with IMAP, STMP, and POP3 support


Images
Full
-screen image viewing and slideshow functionality
Supported Image formats: BMP, GIF, ICI, JPE, JPEG, PNG, TIF/TIFF, SVG, Tiny, WBMP
RSS Reader
Reader for subscribing, managing and keeping up-to date with web feeds
Support for RSS 1.0/2.0 and Atom 1.0


Utilities
File manager
PDF reader
Clock
Games chess, blocks, mahjong and marbles
Backup and restore
Input Methods
HW keyboard, full screen finger keyboard and on-screen keyboard




source specs: nokia technical specs

Tuesday, November 20

Fedora Core 8 - Insight

The much awaited Fedora Core 8 was final released on 08 Nov 2007. The version8 named "WEREWOLF"

    "Werewolf" moves across the land
Router meltdowns close at hand
Sysadmins in search of blood
For those who caused this bandwidth flood
And whosoever took the risk
But failed to make an extra disc
Must face the Bastard Op from Hell
And lose his access to the shell


The best of Linux now is here
To kill the FUD and strike with fear
The hearts of those who steal your rights
And hide their code far from your sight
Closed source takes away what's yours
But you'll never shake the horror
Until you taste the freedom and
The power of FEDORA!

For Screenshoots Installation: Click this link


After the released of FC8, you opt to know those common bugs while installing, configuring and maintaining your desktop hardwares and softwares where bugs are on their ways.

Common Issues

CD/DVD Install Hangs

There appears to be an issue between ISOLINUX and certain BIOSes where the USB keyboard does not work at the boot menu. This can be worked around by holding down the "shift" key during bootup to force the bootloader into text mode.

Bug 239585 - On certain systems, the CD/DVD may hang during boot with message "Ready". Most of the bugs that caused this are thought to be fixed, though on some systems adding "edd=skipmbr" to the kernel command line, works around this issue.

Upgrade Hang

Bug 372011 - Anaconda hangs in postselection in Fedora 7 to Fedora 8 upgrade. This problem is still being investigated.

Sun Java Bug

Bug 254144 Fedora 8 includes IcedTea, a free and open source derivative of OpenJDK. Users trying to install Sun Java might run across a bug with the Sun JVM that makes it incompatible with the newer libX11 included in Fedora 8. Workaround is documented. We highly recommend using IcedTea instead.

Suspend/Resume Problem With Nvidia cards

Suspend option in the menu has been deliberately disabled in this release on systems with Nvidia cards since the default "nv" Xorg driver from Nvidia has a number of problems in handling of suspend and resume correctly. If you wish to override this default, add a file that contains ALLOW_NV_SUSPEND="yes" under /etc/pm/config.d

NetworkManager cannot connect to EAP-TLS secured wireless networks

Bug 323371 - The NetworkManager 0.7 snapshot included in Fedora 8 cannot connect to networks that use encrypted certificate files for authentication. A fix will be available soon.

NetworkManager fails to see wireless networks with Intel 3945 chipsets

Bug 319071 If you have the Intel 3945 wireless chipset, you may experience trouble finding and associating with wireless networks in NetworkManager. Try adding

options iwl3945 disable_hw_scan=1

to /etc/modprobe.conf

Cannot start ssh: Service will not start after installation of the x86_64 version

Bug 364971 - /usr/sbin/sshd: Permission denied

This issue should be fixed by updating to the latest selinux-targeted-policy which is greater than selinux-policy-targeted-3.0.8-44.fc8

Package Updater (PUP) is asking to insert CD

Bug 381721 - In a fresh F8 DVD install, you might see Package Updater (PUP) is asking to insert CD when you launch it for the first time. As a work-around, click on Repository Manager and uncheck "Install Media". See a screenshot.

Booting Installer on Dell Notebooks

Using boot.iso the install hangs during the initial boot at the following:

running install...
running /sbin/loader

Try adding

nohz=off nolapic

to the kernel line.

Less Common Issues

Help viewer crashes when searching

Bug 361041 - yelp (the GNOME Help Browser) may crash when you use its search box. This happens on systems where virt-manager is installed, due to a bug exposed by a bad help file in the virt-manager package. Bug 361071 tracks the bad help file.

This is fixed in yelp-2.20.0-5.fc8, which is available as an update.

Change in behavior: Partition table claimed to be invalid on previously working drive

Bug 241288 - Prior to Fedora 7, the host protected area of hard drives was often ignored and formatted as usable drive space. Starting with Fedora 7 and the new libata driver subsystem, the host protected area is respected by default. As a result, its possible the Fedora 8 kernels will believe your drive has a partition that extends off the end of the disk, as the sectors of the hpa are masked out. The work-around to upgrade such systems is to pass the module parameter 'libata.ignore_hpa=1' when booting the installer. For example, when booting the installer cd, boot with:

boot: linux libata.ignore_hpa=1

Those upgrading from FC6 or earlier via yum on impacted systems can add a line to modprobe.conf along these same lines to allow an F8 kernel to boot their system. Ex:

options libata ignore_hpa=1

Upgrade fails when using SELinux strict policy

Bug 369611 - Machines using the SELinux strict policy (selinux-policy-strict package) cannot upgrade because the new consolidated selinux-policy-targeted package does not properly obsolete the old strict package. To upgrade, first remove the strict policy using the command rpm -e selinux-policy-strict.

Note: I will install FC8 later and I will definitely post some of the bug fixes.

File source: http://fedoraproject.org/wiki/Bugs/F8Common

Wednesday, October 17

Fedora Linux Installation Howto

Fedora Installation (Screenshots)

1. To get started, insert the first installation CD (or the DVD), and power on the machine. Assuming your system boots normally, the first screen you should see contains a couple of installation options. You can install Fedora in either graphical mode, or in text mode. Text mode is useful if your having trouble working with the your system's graphics adapter.
2.Regardless of which mode you choose for installation,the next screen is a text screen that asks if you want to test your CD
media before you install. If you have new disc,skip this section and click next. This test makes sure the installer will be able to read everything
it needs to properly install.
3. The graphical installation begins. Choose your language and click the Next button.
4.If you're using a new disk or want to format your hard disk. Answer Yes to initialize the disk. 5.Partitioning your drive, fedora provides a default layout which I have chosen for this installation. If you choose to remove partitions and create new ones, Anaconda pops up a warning that indicates that all data will be lost on the partitions you remove.
6. I've provided a screenshot that shows you the default disk layout for this operating system. In short,on this 16 GB disk, I have a 1 GB swap partition and a single 15 GB volume (named "/").
7. Use a boot loader for your new installation which is GRUB by default so that you can easily make changes the way your system boots especially in booting other operating systems if necessary.
8. If you want to manually provide TCP/IP addressing information, click the Edit button to bring up the window on which you can provide an address, subnet mask, gateway and dns address.
9. Select your time zone from the list.
10.Provide the password for the "root" user.
11.Choose what kind of software you want to make available on your new desktop system,for manual selection click "Customize now". This process can be done at any time, even after the initial installation of the system.
12. The formatting begins and immediately starts the process of installing the operating system and packages you've selected.
14. When installation done. Reboot the system and wait to boot GUI of your newly installed fedora. Good luck!

see screenshots below:
























WINE (WINdows Emulator)

Wine is an Open Source implementation of the Windows API on top of X, OpenGL, and Unix.
Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available. Wine provides both a development toolkit for porting Windows source code to Unix as well as a program loader, allowing many unmodified Windows programs to run on x86-based Unixes, including Linux, FreeBSD, Mac OS X, and Solaris. For more... http://www.winehq.org/

One way of installing wine: using linux command prompt (root access)
1. #yum install wine* it will then install wine and all its required libraries
2. Wine has its own C:/ directory and program files to keep your installed software under
Menu > Wine > Wine File

Then, I followed the documentation on the site for configuring wine. http://www.winehq.org/docs/en/wineusr-guide.html#CONFIG-WINE-MAIN

see wine website for other detailed info.



Monday, October 8

Setting Up Internet Connection Sharing

To enable Internet Connection Sharing on a network connection You must be logged on to your computer with an owner account in order to complete this procedure.
1. Open Network Connections. (Click Start, click Control Panel, and then double–click Network Connections.)
Click the dial–up, local area network, PPPoE, or VPN connection you want to share, and then, under Network Tasks, click Change settings of this connection.

2.On the Advanced tab, select the Allow other network users to connect through this computer's Internet connection check box. If you want this connection to dial automatically when another computer on your home or small office network attempts to access external resources, select the Establish a dial–up connection whenever a computer on my network attempts to access the Internet check box.
3. If you want other network users to enable or disable the shared Internet connection, select the Allow other network users to control or disable the shared Internet connection check box.
4. Under Internet Connection Sharing, in Home networking connection, select any adapter that connects the computer sharing its Internet connection to the other computers on your network. The Home networking connection is only present when two or more network adapters are installed on the computer.
5. To configure Internet options on your client computers for Internet Connection Sharing Open Internet Explorer. Click Start, point to All Programs, and then click Internet Explorer.)
On the Tools menu, click Internet Options.

6. On the Connections tab, click Never dial a connection, and then click LAN Settings. In Automatic configuration, clear the Automatically detect settings and Use automatic configuration script check boxes.
7. In Proxy Server, clear the Use a proxy server check box.