Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Monday, 27 August 2012

Gimp 2.8 Auto Export No Prompt Save Fix [solved]

I was happy to get the new gimp 2.8 as it had the promised one window feature, yay!

But soon, I noticed that they have stuffed up on another important feature, saving...  One step forward, one step backwards.

Saving now saves a image as a XCF file, which is has a serious ability to interrupts ones workflow.  Unfortunately Gimps designers have no clue what most people use Gimp for, I will break it down:
  1. Take a photo with the camera as a JPG
  2. Edit the photos with Gimp
  3. Overwrite-save the photo back as a JPG <<<<----  Important!
  4. Close Gimp on to other things
Unfortunately in Gimp 2.8 they make you do it more like this:
  1. Take a photo with the camera as a JPG
  2. Edit the photos with Gimp
  3. Export the photo back as a JPG
  4. Be bombarded with several options on how to save the image...
  5. Close Gimp and still be reminded that you have not saved the image as a XCF  FFFFFFUUUUUUUUUUU!!!!!!!!1

Alot of people are completely pissed about this 'feature' and would like to a workaround.  Of course there is nothing in settings to help you but someone named Akkana Peck has come to save us with a cool script to help.
https://github.com/akkana/gimp-plugins/blob/master/save-export-clean.py

Applying the script is easy, just navigate do the following commands in the terminal:

cd ~/.gimp-2.8/plug-ins/
wget https://raw.github.com/akkana/gimp-plugins/master/save-export-clean.py
chmod +x save-export-clean.py

Restart gimp and now you will be greeted with a Save/Export Clean button in the File menu, yay.

Now remap the keyboard shortcut CTRL+S to this button in the preferences and everything will be golden!  It is found in Edit > Preferences > Interface > Configure Shortcuts.  Search for 'save' and look under Plug-ins.





Thanks Akkana you are awesome!



WindyCityTech Blogger
WindyWindyCityTech Wordpress

Sunday, 19 August 2012

Changing a linux password, recovering

ref: http://www.youtube.com/watch?v=CLwqGce6AGo

Boot into a shell as root
type 'e' at the grub menu
change the line "ro quiet splash" TO "rw init=/bin/bash"
press CTRL-D to boot

search for home directory to find the username
confirm username by cat /etc/passwd
type 'passwd USER'
type in new password & confirm
type sync
reboot


another option is to boot from a live CD, mount the hard drive (sudo fdisk -l) and edit a character in the /etc/passwd file.
user:x:1000:1000:user,,,:/home/user:/bin/bash
to
user:x:1000:1000:user,,,:/home/user:/bin/bash
umount and reboot

login without a password.  Put a password in by typing
'passwd user'
then
sudo shadowconfig off
sudo shadowconfig on


WindyCityTech Blogger
WindyWindyCityTech Wordpress

compiling crunch 3.3 in ubunut and mint, error in Makefile

Found on Ubuntu forums here

Modify the makefile under build: crunch mode the $? to the left as shown.


val:    crunch.c

    @echo "Building valgrind compatible binary..."

    $(CC) $? $(VCFLAGS) $(LFS)  -o crunch

    @echo "valgrind --leak-check=yes crunch ..."

    @echo ""

crunch: crunch.c

    @echo "Building binary..."

    $(CC) $? $(CFLAGS) $(LFS)  -o $@

    @echo ""


Also note that crunch default install is /pentest/passwords/crunch  you may want to change the location in the make file to suit.


WindyCityTech Blogger
WindyWindyCityTech Wordpress

Migrating from Ubuntu to Linux Mint Mate, important notes


Few things to note when migrating:

  • Gedit is now pluma
  • Nautilus is now caja
  • Things that started with gnome now start with mate, such as Gnome-terminal is now mate-terminal
  • The green  theme can be cleaned up to not look not green at all, select appearances under the preferences menu
  • The menu bar can be moved back to the top of the screen like the classic gnome 2 Ubuntu.  Another bar can be added to the bottom of the screen for desktop and bun icons.
  • Install synaptic, to get the software installing power back


WindyCityTech Blogger
WindyWindyCityTech Wordpress

Sunday, 12 August 2012

Linux Mint 13 So much Better than Ubuntu 12.04

Ever since Ubuntu released the Unity desktop, I have been fighting a battle to not be forced into the fucking stupid Unity newfag hipster crap new default interface.

As a PC-Thug, I demand stability, productivity, power use and a customisable interface.

Installing gnome 3 ppa on Ubuntu 12.04 was a waste of time, basically what I got was the bloody leftovers from someone else's backyard abortion.  Not good enough.

Checking the Linux Mint 13 Mate 1.2 looked promising, so I tried it out using a live USB drive.  Burnt the ISO to the hardrive using unetbootin.
I was suprised to see very little extra bloatware installed.  No twitter crap, status updates.  Basically nice clean slate to build on.  Also being built on Ubuntu, it is very easy to pick up.

After installing it on a second partition, a few thing can be tweaked to make it look like the old Ubuntu (11.04), getting rid of the green colour was the first thing, then a few more tweaks to move the panel to the top got things looking familiar.

I suggest you try Mint, and get satisfaction.  Thank you Ubuntu for the memories.



WindyCityTech Blogger
WindyWindyCityTech Wordpress

Monday, 2 January 2012

Installing Reaver WPS on Ubuntu 11 code.google.com/p/reaver-wps



What a great program.

To install on Ubuntu, you need to have the prerequisites:
  • a brain
  • build-essential  i.e apt-get install build-essential
  • libpcap0.8 library and the development library libpcap0.8-dev
  • aircrack-ng- preferably the subversion
  • patched compat-wireless drivers - no channel -1 shit
  • wireless card that can do injection
  • reaver wps code http://code.google.com/p/reaver-wps/

The rest is pretty simple, just the usual extraction., ./configure, make, sudo make install.
Pay attention to the ./configure and make processes, if there is anything missing required, check or investigate.

You will need to put you wireless card into monitor mode, use airmon-ng for this.

You will also need to establish a good, solid signal between the AP and you radio, if you cannot then it will wont work very quickly or at all.




WindyCityTech Blogger
WindyWindyCityTech Wordpress

Saturday, 31 December 2011

Backup Home folder on Ubuntu onto a USB drive for upgrades on Linux

It is that simple, before a upgrade:

rsync -a -u  /home/ /media/you_usb_drive/your_backup_folder

Copies all hidden dotfiles, preserves permissions.


WindyCityTech Blogger
WindyWindyCityTech Wordpress

[solved] How to run manage multiple ebay / gmail accounts on firefox

If you want to log into multiple ebay accounts on firefox for shill bidding / selling etc,  it is simple.

Just create multiple profiles, the example below is for Linux

Copy these instructions before going any further.

Close firefox

In the command line type "firefox -P"

Click "add profile" and call it "default2", don't overwrite your existing profile or your bookmarks will be lost.  Create as many profiles as you need!

Close off the profile manager

Now you can create a shortcut for you new profile
"firefox -no-remote -P default2"

So your original firefox shortcut will open the "default" firefox profile and your new shortcut will open the profile called "default2", notice that profile default2 has no bookmarks etc.

You can now change the appearance / settings of the profile default2 to match whatever.  I made mine look like a different colour.

Works for multiple gmail accounts, twitter, facebook the list goes on and on.  It will never work for accounts that rely on IP addresses like file download sites i.e oron or rapidshare.


WindyCityTech Blogger
WindyWindyCityTech Wordpress

Thursday, 18 August 2011

Ubuntu tool for finding duplicate files, images, pictures - Fslint

Fslint is great, it can scan several directories and find all your duplicate files, for instance duplicate images or music files.





You can bulk select the duplicates using selectable criteria to get rid of them.

It also does tonnes of other things too like empty directory detection and searching for bad filenames (Samba?)

A must too for Linux.


WindyCityTech Blogger
windywindycitytech wordpress

Thursday, 11 August 2011

Get a Typeable Location Text Bar in Gnome Nautilus on Ubuntu

Open gconf editor, in your shell go gconf-editor

Navigate to apps > nautilus > preferences and check the box "always_use_location_entry".




For all those power user out there.  You will be able to type where you want to go again.

source: http://askubuntu.com/questions/21924/how-to-make-nautilus-location-bar-editable#21926




WindyCityTech Blogger
windywindycitytech wordpress

Tuesday, 26 July 2011

[Solved] USB Tethering a ZTE V9 SD card using Ubuntu Linux

If you have a ZTE V9 (A.K.A Optus Mytab) and you are tethering it to a linux device, you may be having a little trouble getting the SD car to mount.  Personally, it will mount fine on a windows box but will not mount or show aything in dmesg on my Ubuntu box.

First of all...
You cannot USB mount the SD card and USB Internet tether at the same time, damm.  Portable hotspot still work though!

It is easy to get the USB mounting going though... (Done on Android 2.2)

On the ZTE V9, turn on USB debugging.  Settings > Applications > Development > USB Debugging


On you Linux machine (mine is Ubuntu 11.04)

gksudo gedit /lib/udev/rules.d/40-usb_modeswitch.rules

Search for "0083" and comment out the whole line, like this.
# ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0083", RUN+="usb_modeswitch '%b/



You should be able to plug in your USB cable and mount the SD card like any other USB storage device.


If you want to tether the Internet, you will have to unmount the SD card, so you can check the USB Internet tethering box.

If you have trouble, check you dmesg output upon connection, check you lsusb output and make sure that usb_modeswitch is updated.




WindyCityTech Blogger
windywindycitytech wordpress

Monday, 25 July 2011

Installing Pyrit on Ubuntu 11.04

You could install pyrit using synaptic, but is usually a older version.

The best way to install the latest version is to download the source and compile it yourself.

But there is a problem satisfying all the dependencies, but we can cheat here.
  • Install pyrit using synaptic, version 0.3.0.  Leave it installed on your system.
  • Download the latest source from the pyrit website
  • Try and compile it python setup.py build if it has a spaz make sure all the dependencies are installed.

    I needed to do sudo apt-get install libpcap0.8 libpcap0.8-dev
    and also check g++ python-dev zlib1g-dev libssl-dev python-scapy while u are there.
  •  Once the dependencies are installed sudo python setup.py install



WindyCityTech Blogger
windywindycitytech wordpress

Sunday, 17 July 2011

Installing Ubuntu on Dell Inspiron Mini 10 (1012) Netbook

Installing Ubuntu 11.04 on a Dell Inspiron Mini 10 1012.

No problems with this install:

  • Wireless works, using the proprietary driver.  Check my other blog on how to install the b43 driver
  • Bluetooth is good
  • Ethernet works
  • No problems with special keys on the keyboard
  • Webcam works good with Cheese
  • TV tuner is good, firmware required, see other blog for instructions
lspci dump

00:00.0 Host bridge: Intel Corporation N10 Family DMI Bridge
00:02.0 VGA compatible controller: Intel Corporation N10 Family Integrated Graphics Controller
00:02.1 Display controller: Intel Corporation N10 Family Integrated Graphics Controller
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 02)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation N10/ICH7 Family SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
07:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)
0b:00.0 Multimedia controller: Broadcom Corporation BCM70015 Video Decoder [Crystal HD]


lsusb dump

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader
Bus 001 Device 005: ID 2040:2011 Hauppauge WinTV MiniCard [Dell Digital TV Receiver]
Bus 001 Device 004: ID 0c45:641d Microdia
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub





WindyCityTech Blogger
windywindycitytech wordpress

Friday, 15 July 2011

[Solved] Installing aircrack-ng on Dell Inspiron Mini 10 (1012) Netbook b43

Fuck Broadcom propriety shit!

Scenario:
aircrack-ng wont work out the box on a stock ubuntu 11.04 install, that is because it is using the wl driver.

  1. Install aircrack-ng suite
  2. Disable wl driver
  3. Remove bcmwl
  4. Install compat-wireles & patches.

Checkout and compile the latest svn of aircrack-ng
sudo apt-get install svn
svn co http://trac.aircrack-ng.org/svn/trunk/ aircrack-ng


sudo apt-get install iw

Check wl is blacklisted
cd /etc/modprobe.d
cat * | grep wl


Enter synaptic, Completly remove bcmwl
You may notice nm-applet is saying "firmware no loaded" if you try to connect with wireless - good

I followed instructions on the aircrack-ng site to install compat-wireless and patch for aircrack, then install Broadcom firmware BS!
source: http://aircrack-ng.org/doku.php?id=compat-wireless

wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-$(date -I).tar.bz2
tar -jxf compat-wireless-$(date -I).tar.bz2
cd compat-wireless-$(date -I)
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < channel-negative-one-maxim.patch
./scripts/driver-select b43
make
sudo make install
sudo apt-get install b43-fwcutter firmware-b43-installer
sudo modprobe -r b43 ssb
sudo modprobe b43



check it! (assume your wlan is wlan0)
sudo airmon-ng start wlan0
sudo aireplay-ng -9 mon0


Now make it work properly on boot (important).
ref: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/184600/comments/34

To make ssb not load you have to blacklist it, reboot and execute

sudo update-initramfs -k all -u

If you fail to do this, ssb is loaded before b43 and it will cause error sand the b43 module will fail to load correctly.  Lots of ssb and b43 errors in your dmesg.

Remember to unblacklist ssb after the update-initramfs.

If you still have this problem, I suggest that you make a script in your init.d


#!/bin/sh
modprobe -r ssb
modprobe -r b43
modprobe b43
modprobe ssb



WindyCityTech Blogger
windywindycitytech wordpress

Wednesday, 13 July 2011

[Solved] NM-Applet buttons not working on Ubuntu 11.04


For some reason, I could not click my nm-applet buttons.  Trolled the net to find a solution.  Gnome classic - no effects.

compiz --replace

Your desktop will go spastic for a few seconds.


source: https://bugs.launchpad.net/unity-shell/+bug/757002





WindyCityTech Blogger
windywindycitytech wordpress

Monday, 11 July 2011

How to Dell TV tuner Ununtu Linux for Inspiron Mini 10 (1012) Netbook

This is groin grabbingly simple to get going....



Check if you have the same hardware by doing a lsusb, you should see something like this.
2040:2011 Hauppauge WinTV MiniCard [Dell Digital TV Receiver]

Install the firmware onto your system.
wget http://steventoth.net/linux/sms1xxx/sms1xxx-hcw-55xxx-dvbt-02.fw
cp sms1xxx-hcw-55xxx-dvbt-02.fw /lib/firmware/.


Open synaptic and install metv.

Reboot, check your dmesg to see if the firmware is loaded.

If it checks out ok the you can open metv and strart the tuning wizard.  Use an outdoor antenna, the little one supplied is crap.

Thats it, enjoy!


WindyCityTech Blogger
windywindycitytech wordpress

Sunday, 10 July 2011

Dell Inspiron Mini 10 (1012) Netbook Review

I got this the other day...

Not to bad, got rid of windows crap and installed Ubuntu / Backtrack5

Good battery, fanless, sd card reader...

Touchpad sucks big time, mouse buttons are integrated on the touch pad and it tends to make the mouse jump when a click is done.

Mine has a TV tuner as well.

Since it is fanless, it seem to be hot under the cpu side, this makes the keyboard hot on the right side and  cold on the left.

Function keys do not work unless a fn key is pressed first.  This means changing consoles requires 5 keys to be hit now.















WindyCityTech Blogger
windywindycitytech wordpress

Sunday, 12 June 2011

How to remove exif tags using Ubuntu

Exif data provides a interesting insight to how and possibly where a photo was taken, however sometimes you may want to remove the data embedded in your jpg files.

I will be using two lightweight console programs:

exif - Displays the exif data using a console

mogrify - Amongst other things, strips exif data (part of imagemagick package)

Shown below is a screen dump of exif in action.  The command to show machine readable exif information is 'exif -m picture.jpg'


Now use mogrify to strip the tags 'mogrify -strip *.jpg'
Note:  morgrify will overwrite/append all files, which is what we want most of the time.

A retest with exif, shows the tags are gone!



WindyCityTech Blogger
windywindycitytech wordpress

Sunday, 5 June 2011

Disable the Libreoffice Spash Screen for good!

LibreOffice is the best, heaps better than paying for crappy Microsoft Products, but the splash screen gets in the way when it loads.

There are a few ways to defeat this, one involves having LibreOffice quickstarter running on startup. No, sorry that would be a unnecessary memory hog and something I would expect from a M$ product.

Here is the best way to prevent the splash from being visible.

In Linux, sudo gedit the file /etc/libreoffice/sofficerc
and change Logo=1 to Logo=0
Save the file.






WindyCityTech Blogger
windywindycitytech wordpress