Tag

ubuntu

Browsing
So, you’ve installed Ubuntu 11.10 and found out that it’s all gone and replaced by what seems to be too good of a qualificative of a sidebar and what appears to be a poignant attempt to kill all interest on an open source Operating System. Fear not as we can still make the best of it.
Ubuntu desktop had a very easy, kind interface since the times of 7.04, about 4 years ago, the menu on the top, bar on the bottom, happy explorer on the chair, never a miscommunication, yet this has been replaced by a mac-os-ish-windows-7 look. To get rid of this, follow this guide that I’ve just re-checked for you:

I found this well-matured article about Ubuntu possibilities. Good stuff, check it out:

10 Things You Didn’t Know You Could Do In Ubuntu

1. Create website links that automatically install software

Did you know that you can create a link that will automatically launch Ubuntu’s package manager and install the software? This is very useful if you are helping someone install certain programs in Ubuntu. To create ’software install hyperlink” just create a hyperlink but instead of pointing to the usual HTTP:// address, use

apt:< package name >

So if you are trying to install firefox, create a hyperlink and put apt:firefox in Hyperlink bar. This will create a hyperlink that will launch the package manager and install the package when clicked.

2. Do stuff without touching the mouse

If you know how to launch the ‘Run’ dialog box in Windows, this certain command is also available in Ubuntu. Press ALT+F2 and the similar ‘Run’ dialog box will appear, type in the command or the program name, let’s say firefox, hit enter, and firefox will launch.

3. Instantly Search Google for Any Word or Phrase

Googlizer is an app that you can install (this is available from the package manager) and use it to search Google for anything using the keywords directly from your file. An example is if you have a PDF file that contains the word ‘lethargy’, with Googlizer, all you need is to highlight the word and click Googlizer’s icon to search the web.

4. Create a File Delete Command That Uses the Trash

If you are a frequent user of rm command, you can create a command that will move the file you wish to delete to the Trash directory, instead of completely deleting the file. To do this, just use the command alias and few tweaks with Linux files:

– Open a terminal window, and type gedit ~/.bashrc
– Add this line after the last line of the file:

alias trash=”mv -t ~/.local/share/Trash/files –backup=t”

– Save and close.

To use the command, you need to use the trash command instead of rm:

trash mydoc.txt

5. Repair Windows from Within Ubuntu

You can mount your Windows partition inside your Ubuntu and do stuff with it. With the stuff I mean you can access your files in Windows partition, or you can also repair it within Ubuntu. To be able to repair a near-death Windows partition, unmount it and use the command ntfsfix:

sudo ntfsfix /dev/sda1

This is assuming that your Windows partition is /dev/sda1 and the filesystem used is NTFS.

6. Dump the Text on a Virtual Console to a File

Large files can be tiresome to read so you may want to filter the words that you need and dump into a new and smaller file. This can be done using this command:

ls > output.txt 2>&1

The command will execute ls command, put the results into the output.txt file and display errors if there are any.

7. Instantly Hide a File or Folder

In Linux, any file that begins with a period (.) is considered as a hidden file. So if you want to hide a certain file from a younger sibling or parent, rename a file and put. at the beginning of the filename

mv grades.txt .grades.txt (use this command inside a terminal)

Or if inside Nautilus, highlight the file, press F2, and rename the file.

8. Print at the Command Line

Did you know that you can print files from the command line? Try this command to print a file without the fancy format for fast printing:

lp -o page-top=72 /home/myfile.txt

This is a quick and dirty way of printing files since the formatting is disregarded, but very useful if you want to print something fast and easy.

9. Listen to MP3s when no GUI is running

If you need to work in your Ubuntu using text mode only and no GUI running, install vlc using the apt-get command and use it to play your MP3 music from the command line:

vlc -I ncurses /home/*.mp3

This will play all mp3 files in the /home folder using the CLI mode of vlc.

10. Turn your desktop into your /home folder

If you want to make your default Desktop directory into something else beside the typical /home/user/Desktop location, you can do so by hitting Alt+F2 and type in gconf-editor. This will launch the gconf-editor app, put a check beside /apps/nautilus/preferences, save and exit. The change will take after your next login.

Thanks to Keir Thomas via PionyTux Weblog http://www.pinoytux.com

ServerPronto offers the best affordable and secure hosting service in all dedicated server packages.

Ubuntu is a very customizable operating system and everyone has their own reasons and needs for any particular OS. Still, these 10 configuration tips are worth a look and definitively can be considered to do immediately after an Ubuntu installation. Thanks to UbuntuLinuxHelp.

1) sudo aptitude install sbackup

Nothing is worse than losing all your important data (pictures, email messages, music, documents, etc.) The above command will install Simple Backup Suite (more details found on Sourceforge). For me at least it’s a great desktop backup solution. I can select which directories I want to be backed up (full and incremental), then have backups automatically transferred to my external network storage. I play a lot with my computer, I often break something as a result. With sbackup, I can be more confident as it’s easy to restore data (in the event I have to reinstall an application or even worse… the OS itself). You can also install via:

apt:sbackup

2) sudo aptitude install ubuntu-restricted-extras && sudo aptitude install w64codecs

If you enjoy music, videos, and so forth, you’ll want to install the extra media codecs and packages that will allow you to play almost any desktop media format (mov, mpg, avi, wmv, mp3 and so on). I wrote a detailed post:  “Build a Web Developer PC and Enable Most Media Playback Using Ubuntu Linux”, which provides a bit more of an in-depth explanation of the above command (including editing the sources.list to include mediabuntu). Note: If you have a 32 Bit system, change the “w64codec” part of the command to say “w32codecs” instead. You can also install these packages via:

apt:ubuntu-restricted-extras

apt:w64codecs

3) sudo apt-get install msttcorefonts && sudo fc-cache -fv

I like having the same fonts used by Windows users. People often send me .doc files, so I want to ensure I have at least the core fonts they use. The above command installs the Microsoft core fonts and then reloads the font cache. I’ve posted about this before at “How to Install TTF and CTF Fonts in Ubuntu”, which contains far more detail. You can also install the core fonts via:

apt:msttcorefonts

4) sudo aptitude install vlc

I prefer not to try juggling with the use of different applications to play different media types. VLC plays all the media types I access. For me at least, it’s the singular application I use to play everything from an MP3 file to a DVD video (and incidentally, vlc can stream your media to other computers, even to the television!). Of course, you can click the apt link and install via:

apt:vlc

5) sudo aptitude install k3b

Even though I use gnome, I still install k3b, which is (in my opinion) among the best DVD/CD burners around. I find the interface intuitive and easy to use. There’s a post containing more applications at “Top 100 of the Best (Useful) OpenSource Applications”. Using apt links, we can also install k3b via:

apt:k3b

6) Enable surround sound right away. I have an earlier post at Enable 5.1 Surround Sound on Linux – Ubuntu 8.04 Hardy, but the jist of the instructions is to edit

sudo gedit /etc/pulse/daemon.conf and change the line that says:

; default-sample-channels = 2

to say

default-sample-channels = 6

7) Use the “Windows” Key.

I prefer using keyboard shortcuts instead of the point and click the mouse. Thankfully, there’s an easy way to turn your keyboards “Windows key” into an Ubuntu key.

Go to: System -> Preferences -> Keyboard Shortcuts

Scroll down to the action “Show panel menu” and click on it. (The phrase “New accelerator menu…” will appear).

Now simply press your Windows key once. (You’ll see the accelerator now says “Super L”). Select the “Close” option and you’ll see that your Windows key now works. Note: If you ever want to change it back to the default (for Hardy 8.04), the original setting is Alt f1.

8 ) Make gedit remember more documents.

I often use gedit to quickly edit files in a GUI environment. I often wish gedit would remember more of the documents I edit. That way I don’t have to surf through the file system. There’s a simple way to ensure gedit remembers more of the files you edit:

sudo gconf-editor

In the window that appears (using the above command), select

apps -> gedit2 -> preferences -> ui -> recent

Select the “max_recents” key and change the default of 5 to 10

9) Increase the start speed of multi-core CPU systems.

This will slow down systems that have a single CPU. For multi-core CPUs, we can change the services to all start together (in parallel) during boot time. The command to do this is;

sudo perl -i -pe ‘s/CONCURRENCY=none/CONCURRENCY=shell/’ /etc/init.d/rc

and then reboot with

sudo shutdown -r now

10) Finally, I sometimes need to run an application that is for another OS (not Ubuntu Linux). Virtualization is the answer and allows me to run the other application without using Wine ore rebooting into another OS. You can install Virtualbox:

sudo aptitude install virtualbox

If you’re interested, more information about VirtualBox can be found by visiting the about VirtualBox page. Again, here’s the apt link to install VirtualBox:

apt:VirtualBox

A bonus tip!

I’m often asked how to uninstall a .deb package. The command to facilitate that is:

sudo dpkg -r package_name

More about this at http://ubuntulinuxhelp.com/10-things-to-do-after-installing-ubuntu-linux/

ServerPronto offers the best affordable and secure hosting service in all dedicated server packages.

IPTables is an application program that allows to set up, maintain, and inspect the tables of IP packet filter rules provided by the Linux kernel.

All IPTables rules are stored on /etc/iptables.rules
You can open/close any port from it and then restart the network by running “etc/init.d/networking restart”

Before opening or closing ports, we recommend to first verify if the port is open or closed and who is using the port. There a number of different commands:

Commands to verify ports:

nmap IP#
nmap localhost
netstat –ntulp

to verify the single port

netstat -nap | grep  <port #>

to list all current rules in iptables

iptables -L

For opening a TCP port:

iptables -A INPUT  -p tcp –dport <port #> -j ACCEPT

For opening a UDP port:

iptables -A INPUT -p udp –sport <port #>  -j ACCEPT

Save changes:

iptables-save > /etc/iptables.rules

If you need to disable the firewall temporarily, you can flush all the rules using:

iptables -F

————————————————————————————————————

ServerPronto offers the best affordable and secure hosting service in all dedicated server packages.

 

For more detailed information visit

Iptables Description by Ubuntu Manuals

Iptables How-To for Ubuntu by Ubuntu Manuals

Iptables How-To for Debian by wiki.debian.org

We have completed our annual OS survey and wanted to share the top OS choices as selected by our customers.

The operating systems most frequently selected by our clients, in order of popularity, are:

  1. CentOS 5.x
  2. Debian 4.0rx
  3. Ubuntu 8.10
  4. Windows Server 2003
  5. Fedora Core 10
  6. FreeBSD 7.x
  7. Windows Server 2003 Web Edition
  8. CentOS 5.x 64-bit
  9. Ubuntu 8.10 64-bit
  10. Gentoo 2008

“We’re releasing this information as a public service, both to our clients and anyone who is researching the best options in operating systems,” explained Octavio Diaz, COO of ServerPronto. “Generally speaking, an operating system’s popularity is going to be a significant indicator of their quality, and these operating systems clearly have a lot of satisfied customers.”

ServerPronto offers affordable and secure dedicated servers and cloud hosting service packages.