Ubuntu iTOps Tube

advertisement center

Tuesday, April 10, 2012

How can I automatically set my status to Available when I log in?

This is the first thing I do after logging in:



screenshot



How can I make it happen automatically?





"Not enough free swap" error when trying to hibernate

I recently upgraded from 11.04 to 11.10, but I get "Not enough free swap" error when trying to put my laptop to hibernation.



I have 2G of physical memory and 3G for swap. Besides, the hibernate works fine in 11.04.



So what might be the problem ?



Thanks in advance.



UPDATE?



The error happens when I try to hibernate.



And the memoinfo is here:



SwapCached:            0 kB
SwapTotal: 4028604 kB
SwapFree: 4028604 kB




get nvidia working on an acer travelmate 630

Is there a way to get the proprietary nvidia drivers working on the old travelmate? I'd like to use it as a mediabox with xbmc, but it wouldn't work with nouveau (nouveaus support of opengl is lacking so far).
I tried to put in "nomodeset" at the grub prompt, but it kind of didn't help. Any other hints?





Can Grub error messages be hidden, as Ubuntu continues to load regardless?

can Grub 'error' messages that appear over the blue splash-screen be made to be hidden, as Grub continues through to load Ubuntu without any problems, and there are no effects within the desktop environment?



Grubs version is 1.99 rc1.



regards
Livio





Synaptic Dependency Error

Every time i install/remove something via Synaptic, I always get this error



E: foomatic-filters: subprocess installed post-installation script returned error exit status 10
E: rsyslog: subprocess installed post-installation script returned error exit status 10
E: foo2zjs: dependency problems - leaving unconfigured
E: samba-common: subprocess installed post-installation script returned error exit status 10
E: samba-common-bin: dependency problems - leaving unconfigured
E: smbclient: dependency problems - leaving unconfigured



The following is what I get from executing the following command:
sudo dpkg --configure -a



http://pastebin.com/h1cCJDKF



If you happen to know what this error really mean and how I can fix it (if it is necessary + easy to do so) please let me know!



Thanks in advance!



FYI:



My problem was actually to get MusicBrainz Picard installed on my Ubuntu Natty but after several reinstallations, the programme still fails to start up. I am wondering whether the error I get from Synaptic is an explanation to this.



The following is the error I get from installing Picard from the Software Centre



http://pastebin.com/EDDRM3c1



Thankyou very much





Why won't Ubuntu copy large files to flash drives or network locations?

Since I installed 11.10 I am unable to copy large files (say 1gb or more) to ANY usb drive that is formated as FAT. The file starts copying, but soon an error appears, saying



"Unable to Copy" . "Error splicing file: Input/output error".


I am able to do it via terminal, using the cp command. I use Gnome3, but the same error has happened in Unity as well.



Apparently it works if I format the USB drive as NTFS or EXT3, EXT4. But, for many appliances, FAT is necessary.



The problem is also not with the USB port, because it works under Windows.



It did not happen before, when I had 10.04 installed.





aspell/hunspell ispell mode: which bug is it?

When used in Ispell (pipe) mode Aspell and Hunspell produce different results in respect to empty lines. This can lead to misinterpretation of pipe output and positioning of misspelled words when using this mode, as I've experienced.



Sample file:



lorem

ipsum


produces this output with Aspell:



@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
& Lorem 44 0: ...

& ipsum 16 0: ...


and this with Hunspell:



@(#) International Ispell Version 3.2.06 (but really Hunspell 1.3.2)
& Lorem 14 0: ...


& ipsum 6 0: ...


Different number of suggestions is not the issue, but Hunspell IMHO correctly reports empty line, while aspell misses to report it. So if user counts on line number by the output of empty lines, results would be incorrect. Workaround would be something like this:



cat sample.txt | sed 's/^$/ /g' | aspell -a



which adds single space on empty lines so Aspell can catch the train



As I know almost nothing about all this different spell-checkers, it's not clear where and should I report this issue:



Is this bug in Ispell < 3.2.06 if Aspell somehow uses this library, or is it bug in Aspell?





no sound in headphone

Ubuntu 11.10, kernel 3.0.0.13.
Netbook medion AKOYA 1210.
There is no sounds comming out the headphones.
I have to go in the sound applet menu and switch off and on the sound card.
After that, sound come out of the headphones.



Is it a bug ?
Note I never encountered this issue since Ubuntu 10.04.





Application indicator + entry widget

I would like write my own application indicator via guide in
http://unity.ubuntu.com/projects/appindicators/ (in python)



My question - Is there any chance add next to icon indicator entry
widget (see below) on top panel?



(
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
vbox = gtk.VBox(False, 0)
window.add(vbox)
vbox.show()
entry = gtk.Entry()
entry.set_max_length(50)
entry.set_text("hello")
vbox.pack_start(entry, True, True, 0)
entry.show()
window.show()
)


Thanks





No Internet Connection - ubuntu 11.10

I installed Ubuntu 11.10 recently. After the first bootup the computer freezes so I have to force-quit my computer.



Then I turned on my computer after that. I tried connecting to the internet. My (and my neighbor's) wireless networks shown up, but no matter how many times I tried, I can't connect to my home network. I checked the password and the other laptop's internet works (a MacBookPro). It was a wireless network.



What's weird is that the Wireless network worked when I was installing ubuntu



How can I connect to the internet now? I don't have a wired network.



Please Help! Any help will be appreciated



Specs: ASUS F81Se, Windows 7 Dual-boot, I remember the wireless card was made by Atheros, 4GB RAM





When Ubuntu Server restarts eth0 Doesn't come back up

Every time I restart my Ubuntu Server 11.10 I can't ssh into it because ETH0 doesn't come up automatically. I never had this problem before upgrading to 11.10.
I have to login to the server and start the ETH0 manually. I would appreciate it any help. Thanks.



Here is my /etc/network/interfaces file:



#The loopback network interface
auto lo eth0
iface lo inet loopback

# The primary network interface

iface eth0 inet static
address 192.168.1.102
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1




I know my root password, so where do i type it to open this file?

I have my root password, and just installed a keylogger for myself and after losing a long chunk of text i worked really hard on to a program crash. The keylogger installed just fine, using my root password in the terminal worked fine to, set the output file and started it.
Now how do i look at the output file? Under permissions, it say's that only root can read/write. How do i log in as root?





After paying for my music ubuntu-one-music-store tells me my network is down, yet it's not! [closed]

After paying with paypal in "Ubuntu One Music-Store" it returns this message:




Internet connection is required to access the music store

Please connect and reload.




Then when I press reload it returns the same message.
When I check into my Ubuntu One account on the web i don't see my purchased music.



What to do?





how to stop apache2, mysql from starting automatically as computer starts?

my os is 11.04.

i have apache2 & mysql installed.



how to stop apache2, mysql from starting automatically as computer starts?





How to Run files and open folders as an administrater 11.10

Solved!!!



Enable open as administrator in nautilus!



To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below:



enter code here



sudo apt-get install nautilus-gksu


enter image description here



After installing that application run copy and paste the line below and press enter.



sudo cp /usr/lib/nautilus/extensions-2.0/libnautilus-gksu.so /usr/lib/nautilus/extensions-3.0/


enter image description here



Finally, log out and back in then go and test it, by clicking your right mouse click on the file you want to run as Admin and your see a popup menu with the words: open as administrater.



enter image description here



Visit: http://www.liberiangeek.net/2011/12/add-open-as-administrator-to-nautilus-context-menu-in-ubuntu-11-10-oneiric-ocelot/ for help and from here.



Enjoy!





run a script on window switch (on alt-tabbing into/outof a particular app)

I'd like to run a script whenever I switch into or out of a window.



Specifically, I have a "toggle touchpad on/off" script, which i want to run whenever I switch into or out of gvim.



so, is there any kind of hook for that? even something that can be run whenever alt-tab is detected, as long as it can tell what window you're going from/to?



I'm using gnome-shell, if that makes any difference.



[edit] Have started looking into gnome-shell-extensions, which seem to be written in javascript, so might not be too hard to hack one together myself...





The Mystery of the Vanishing Disk Space

My disk space is dwindling by about 2GB a day! I only have a few more days before I run out of space.



$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 143G 126G 11G 93% /
udev 491M 4.0K 491M 1% /dev
tmpfs 200M 696K 199M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 499M 144K 499M 1% /run/shm
/dev/sda2 1.9G 580M 1.2G 33% /tmp
/dev/sda1 92M 29M 58M 33% /boot


I have been searching for the biggest directories/log files, deleting and compressing. But I am still losing the war. Finally, I realised I have a big misunderstanding:



julian@server1:~$ sudo du -h / | tail -n 1
16G /


All of my files in / only add up to 16 GB. That leaves 110 GB unaccounted for!



Clearly I have a misunderstanding: I thought the '/dev/sda4' line represented all the files visible from '/'. What should I be reading to understand where the other storage has gone?



More details:




  • I have an Ubuntu 11.10 server, that was set-up by data-center staff.

  • It is running




    • my own code (which is fairly prolific with log files, but otherwise doesn't store much stuff on the drive)

    • duplicity for backups (which tends to store a lot of signature files)

    • various other standard services, like Apache, nagios, etc. They are very lightly used.


  • It has been up for about 4 months without a reboot.


  • I lied about the du output (simplified it for effect). It also complained about not being able to access GVFS and the du processes's own resources. I believe they are irrelevant:




.



 du: cannot access `/home/julian/.gvfs': Permission denied
du: cannot access `/proc/10841/task/10841/fd/4': No such file or directory
du: cannot access `/proc/10841/task/10841/fdinfo/4': No such file or directory
du: cannot access `/proc/10841/fd/4': No such file or directory
du: cannot access `/proc/10841/fdinfo/4': No such file or directory




translation pages and display the desired language

Please help in the matter of transfer and display pages in Russian. Is there an option in the settings, allowing Ubuntu to display pages are in Russian at once, without using translators. If such an opportunity please feel free to show the tab.





need help for alarm

recently i have switched to ubuntu from windows just because i like to explorer new areas but sticked here at ubuntu but there is a problem that i am a heavy sleeper and need alarm that wakes me in morning for my uni i have tried my alarms in ubuntu but couldnt find anyone that wakes my computer from sleepmode or from hibernation is there any software that does that thing
need help please





Creation as Contribution

submitted by mhall119
[link] [comment]



What happened to my flash?

SOLVED (thanks janderson91z): Go into software center, uninstall flash then reinstall.

Okay, this is probably a stupid question with an obvious answer, but I googled and googled and I couldn't find any good information.

I had flash installed, then I ran an update and now it's gone... and I can't figure out how to install it. Should I just install the package manually from adobe's website? Or should I switch to a flash alternative?

Bottom line, how do I watch youtube videos again?

submitted by pconwell
[link] [8 comments]



Chat programs?

Are there any other chat programs besides Empathy and Pidgin? I see Instantbird, which I use on Windows (quirky sometimes but it works) and haven't been able to get it to run right. I'm not a huge fan of the UI on both Empathy and Pidgin which is why I'm looking for new ones.

Thanks!

submitted by TemperingPick
[link] [3 comments]



Probably not the right way to phrase this, but I'm thinking about switching to Ubuntu full-time...any "pro-tips" for a semi-noob?

I have Ubuntu running on a ridiculously shitty HP desktop I have at home, because that's basically all it can run...it couldn't even run the Windows distro it came with. Anyway, I've gotten the hang of Linux, still not too great with command-line stuff (I'm prone to forgetting commands...), and I just need to get used to finding Linux alternatives.

I'm keeping Windows on my laptop, but I'm repartitioning my hard drive to run Linux as well. I have 2 questions...

  1. Am I able to share a hard drive? This is mainly so I don't have to lose data when I repartition, but I was just wondering if I could simply share a drive between Windows and Linux. I know I won't be able to run any .exe's or anything if I'm in Linux (without Wine or something), but can I still just share the drive? Also, I am aware that after I repartition my hard drive, I'll be able to see both drives in Linux, so I'm not asking how to access my files...more if it's possible to skip the partition step in dual-booting?

  2. What are some "pro tips" about Linux that I don't know about? I know little things in Windows, like pressing the Windows key+R will bring up the Run menu, and putting what I call one-time-run apps (programs like ADB and Fastboot in Android that you don't necessarily "install," but run them from a folder that has all the components they need) in the C:// context so you don't have to run them from their folder. What are some small things like that in Linux that will enhance my experience?

Really, just share anything cool about Linux...what makes you a fanboy? Thanks!

submitted by enfinitee
[link] [10 comments]



Any reason for two versions of Wesnoth in Precise Pangolin?

submitted by paranoidforareason
[link] [9 comments]



Dipping my toes in 12.04. I'm seriously impressed, it's beautiful and responsive. Any advice or things I should know?

I've stayed on 10.04 until now, it's for production and I've experimented enough with Ubuntu non-LTS to keep it stable this time ;)

I'm building it as a virtual machine right now to see how it is to work on.

submitted by a3q
[link] [74 comments]



Editcap Guide: 11 Examples To Handle Network Packet Dumps Effectively




 
Editcap utility is used to select or remove specific packets from dump file and translate them into a given format. Editcap does not perform packet captures like ethereal. Instead, it operates on the captured packets and writes some of the required packets into another file. We can pass various options to editcap to get our preferred packets.

In this article, let us review 11 practical examples on how-to use editcap to handle the packet dumps effectively.

Primary Purpose of editcap

Following are the main reason to use editcap command.

§  Divide a dump file into multiple files.

§  Select only the required packets.

§  Translate the capture file from one format to another.

§  Ability to read from a compressed dump file.

§  Make the job easier for network analyzer tool by loading only selective packets, instead of loading whole dump.

§  All feature results in less time consumption when processing or analyzing packets.


Let us assume the scenario where you have to analyze only some specific packet types in a huge dump file. In this situation, we cant use the network packet analyzer (wireshark or ethereal) to load the huge dump file in a single shoh, as it will be a CPU intensive process and the system may hang. Editicap utility makes the job easier by giving only relevant packets, so it could be loaded by network analyzer tool in quick time.

editcap is available in the wireshark package. Make sure wireshark/ethereal package is installed to use the editcap.
 

11 Practical Examples Of edicap Usage

Example 1: Discard set of packets from the beginning of input_dump file

The output_dump file will contain all packets except the first 10 packets.

# editcap -v input_dump output_dump 1-10

Example 2: Discard set of packets from the middle of input_dump file

The output_dump file will contain all packets except packets from 200 to 210.

# editcap -v input_dump output_dump 200-210

Example 3: Select multiple range of packets (from beginning and middle)

The output_dump file will contain first 10 packets and packets from 100 and 200.

# editcap -r  -v input_dump output_dump 1-10  100-200

Example 4: Change the encapsulation type of the capture file using option -T

By default the encapsulation type of the dump file is ether. The example below, translates the capture file into ieee-802-11-bsd format

# editcap -v -T  ieee-802-11-radiotap input_dump output_dump

Example 5: Process the compressed input_dump files

editcap automatically detects the compressed capture file formats. Currently it supports for the gzip format. In the example below, it takes packets from the compressed input file and writes the first 10 packets and the packets in-between 100 and 200 into the output_dump file.

# editcap -r -v input_dump.gz output_dump 1-10 100-200

Example 6: Extract packets between a specific timeperiod using option -A and -B

This example create the output_dump, which contains the packets that are captured between the time mentioned in option A and the time mentioned in option B.

# editcap -v -A "2009-02-11 11:26:30" -B "2009-02-11 11:27:00"  input_dump output_dump

Example 7: Change packet’s timestamp (reduce or advance) using option -t

To advances the timestamp of packets to one hour.

# editcap -t 3600 input_dump output_dump


To reduces the timestamp of packets to 30 minutes,

# editcap -t -1800 input_dump output_dump

Example 8: Remove duplicate packets from the output_dump file using option -d

The example below looks back the previous frames to find the duplication. Finally it gives the dump which does not contain duplication.

# editcap -v -d input_dump output_dump

Example 9: Truncate the packets to the specific length using option -s

Produces the ouptut_dump file with packets length limited to 100. This can be very helpful under lot of situations. For example, you can use this method if you want to get only the IP layer of all the packets and does not require other layer.

# editcap -s 100 -v -A "2009-02-11 11:26:30" -B "2009-02-11 11:27:00"  input_dump.gz output_dump

Example 10: Divide input_dump file into multiple files using option -c

Divide the single dump into multiple file and each contains specified number of packets.

# editcap -v -c 1000 input_dump output

 
If the input_dump contains 5000 packets, editcap will generate the following 5 different output files.

output-00000
output-00001
output-00002
output-00003
output-00004

Example 11: Remove certain bytes from the bottom of all packets using option -C

This example removes 10 bytes from every packets and writes into the output file. You can confirm this, by viewing the output file in wireshark, the frame layer of every packet will show “50 bytes bytes on wire, 40 bytes captured” (here the actual size of a packet is 50 bytes).

# editcap -C 10 input_dump output

 

 

7 Powerful Firefox Bookmark Add-ons To Enhance Your Browsing Experience


 

Like most of you, I’m a huge fan of Firefox and use it intensively both at home and work. There are lot of useful add-ons available for Firefox, which makes customizing the browser very easy. A while back we discussed about 7 Essential Firefox Security add-ons that will help you browse the internet securely.
 
In this article, let us discuss about 7 powerful Firefox bookmark add-ons along with screenshots that will enhance your browsing experience drastically.

Did I miss any of your favorite Firefox bookmark add-ons? Please leave a comment and let us know which one is your favorite Firefox bookmark add-ons from this list.
 

1. Foxmarks Bookmark Synchronizer

If you are using Firefox on multiple computers, Foxmark is an essential add-on. I use Windows laptop at work, Ubuntu laptop at home and Fedora server at home. On all these three systems the bookmarks on my Firefox browser is exactly the same. If I add a bookmark on my Firefox browser at work, Foxmarks syncs it across all my systems automatically.
 

Fig: Foxmarks Overview

 
Following are the main advantages of foxmarks:

§  Synchronize Firefox bookmarks across multiple systems

§  Backup your bookmark to a central server

§  View your bookmarks online anytime at my.foxmarks.com

§  Add tags while adding bookmarks

 
Password Synchronization is an optional feature that allows you to securely synchronize your saved passwords between your computers. With this feature, you can save your passwords at work and have them automatically available on your computer when you get home!
 
Foxmarks can also synchronize and backup your saved password. This is an optional feature that can be enabled if required. Please read Formarks wiki to understand this feature in detail.
 
To create a Foxmarks account, click on Tools Menu on the Firefox browser, -> Foxmarks -> Foxmarks Settings, which will display the Accounts Tab as shown below. Click on ‘Run Setup Wizard’ and follow the instructions.

 

Fig: Foxmarks Settings – Account Tab. (Tools Menu -> Foxmarks -> Foxmarks Settings)

 
If you are new to Foxmarks, this
 Video Tour will explain the details of how this add-on works.

2. Delicious Bookmarks

Delicious is the most popular social bookmarking site. For those who are used to the traditional way of organizing bookmarks using folders, delicious may be little different, where you should bookmark using tags. Once you get used to bookmarking using tags, you’ll never go back to organizing bookmarks using folder.
 
This add-on was developed by Yahoo!. After you’ve installed it, it will add the following three buttons on the Firefox tool bar next to the home button, as shown below.
 

Fig: Delicious Bookmark Buttons

 

1.    Bookmarks Button: This will open the delicious bookmark panel on the right side of the browser. To retrieve a bookmark, enter the tag in the search box in this side panel.

2.    Tag Button: When you are visiting a website, click on this button to bookmark, which will bring up the bookmark dialog as shown below, where you can add tags.

3.    Delicious Button: Clicking on this button will take you to delicious.com website, where it will display all your bookmarks.

 

Fig: Delicious bookmarks

 
You can also import your existing firefox bookmarks to delicious and share the bookmarks with your friends and family.
 
Get a
 Full Tour of delicious Firefox add-on.

3. Smart Bookmarks Bar

Smart bookmarks will save space on the bookmark toolbar by hiding bookmark names and display only the icons. When you mouse-over on a specific bookmark icon, it will display the full name of that particular bookmark.
 

Fig: Smart Bookmarks Bar displaying bookmark icons

 

Fig: Smart Bookmarks Options

4. ScrapBook

Following are few highlights of ScrapBook add-on:

§  Save a local copy of a webpage.

§  Save full or part of the webpage to your local system.

§  Specify whether you would like to download the image, music, movie or archive files that are located on a webpage that you are visiting

§  Perform a Full-text search on all the webpages that was captured

 
A new ScrapBook menu will be added to Firefox, which will give the following sub-menu items.

§  Capture Page

§  Capture Page As

§  Bookmark with Scrapbook

§  Capture all Tabs

§  Show in Sidebar

 
To get the ScrapBook option dialog, click on ‘Show in sidebar’ and click on the ‘Tools’ menu in the side bar and click on ‘Options”, which will display ScrapBook option dialog as shown below.

Fig: ScrapBook Options

5. Read It Later

Using Read It Later, you can save webpages to a reading list, which is different than bookmarking. For example, when you are visiting social media sites or news sites, you may not want to add all articles or news items to your bookmark. However, you may want to add it to your temporary reading list. Once you’ve read it, you can mark it as read, which will remove the news item from your reading list.  
You can also save the reading-list to your system for offline reading.
 

Fig: Read It Later reading list

The Read It Later Video Tutorial explains this in more detail.

6. UrlbarExt

This awesome add-on will add icons for the following features on the address bar.

§  Make Tiny URL

§  Copy URL

§  Search site

§  Go up

§  Tag pages easily

§  Navigate through sequential URL’s

§  View page cached version

§  Unblock filtered websites

§  Surf anonymously using online phproxy servers

 

Fig: UrlbarExt Address bar

 
Using the UrlBarExt option, you can choose what icons will be displayed on the address bar.
 

Fig: UrlBarExt Options

7. Fast Dial

Fast Dial is a visual bookmark. Install Fast Dial and press Ctrl+T to open a new tab in Firefix and launch the Fast Dial. You can also add “about:blank” as home page, to open Fast Dial while starting Firefox.
 
The Figure below shows how Fast Dial visual bookmark will look-like on a new Firefox tab, when you press Ctrl+T.
 

Fig: Fast Dial Visual Bookmark

 
Add a site to the Fast Dial visual bookmark using one of the following methods:

§  Right click on the website you are visiting and select ‘Add to Fast Dial’, which will add the website to one of the visual empty slots in the Fast Dial.

§  Click on one of the visual empty slots in the Fast Dial, which will prompt for the URL to be added.

 
You can also assign logos to the Fast Dial visual bookmark. There are lot of nice logos available from userlogos.org that you can use. Follow the steps below to add Google website to the Fast Dial and assign a logo.

§  Visit Google on your Firefox browser

§  Right Click on the Google home page and click ‘Add to Fast Dial’

§  Press Ctrl-T to open a new tab, which will display the Fast Dial page, where you’ll see Google home page added to one of the empty Fast Dial box

§  Right Click on the newly added Google box and select properties

§  Click on the advanced tab, that will display the dialog as shown in Fig below.

§  Click on the Finder-glass icon next to the Logo field, which will automatically go to userslogo.org and show the available Google logo. Download one of the logos you like and use it.

 

Fig: Add logo to Fast Dial