This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menusudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get -t experimental install linux-headers-3.8-trunk-all-amd64
sudo apt-get -t experimental install linux-image-3.8-trunk-amd64
sudo update-grub
sudo apt-get install mesa-utils
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
import os
import getpass
class cb_exit:
def disable_buttons(self):
self.cancel.set_sensitive(False)
self.logout.set_sensitive(False)
self.suspend.set_sensitive(False)
self.reboot.set_sensitive(False)
self.shutdown.set_sensitive(False)
def cancel_action(self,btn):
self.disable_buttons()
gtk.main_quit()
def logout_action(self,btn):
self.disable_buttons()
for line in os.popen("wmctrl -m"):
parts = line.split()
if parts[0] == "Name:":
wmName = parts[1].lower()
self.status.set_label("Exiting " + wmName + ", please standby...")
os.system("killall " + wmName)
def suspend_action(self,btn):
self.disable_buttons()
self.status.set_label("Suspending, please standby...")
os.system("cb-lock")
os.system("dbus-send --system --print-reply --dest=\"org.freedesktop.UPower\" /org/freedesktop/UPower org.freedesktop.UPower.Suspend")
gtk.main_quit()
def reboot_action(self,btn):
self.disable_buttons()
self.status.set_label("Rebooting, please standby...")
os.system("dbus-send --system --print-reply --dest=\"org.freedesktop.ConsoleKit\" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart")
def shutdown_action(self,btn):
self.disable_buttons()
self.status.set_label("Shutting down, please standby...")
os.system("dbus-send --system --print-reply --dest=\"org.freedesktop.ConsoleKit\" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop")
def create_window(self):
self.window = gtk.Window()
title = "Log out " + getpass.getuser() + "? Choose an option:"
self.window.set_title(title)
self.window.set_border_width(5)
self.window.set_size_request(500, 80)
self.window.set_resizable(False)
self.window.set_keep_above(True)
self.window.stick
self.window.set_position(1)
self.window.connect("delete_event", gtk.main_quit)
windowicon = self.window.render_icon(gtk.STOCK_QUIT, gtk.ICON_SIZE_MENU)
self.window.set_icon(windowicon)
#Create HBox for buttons
self.button_box = gtk.HBox()
self.button_box.show()
#Cancel button
self.cancel = gtk.Button(stock = gtk.STOCK_CANCEL)
self.cancel.set_border_width(4)
self.cancel.connect("clicked", self.cancel_action)
self.button_box.pack_start(self.cancel)
self.cancel.show()
#Logout button
self.logout = gtk.Button("_Log out")
self.logout.set_border_width(4)
self.logout.connect("clicked", self.logout_action)
self.button_box.pack_start(self.logout)
self.logout.show()
#Suspend button
self.suspend = gtk.Button("_Suspend")
self.suspend.set_border_width(4)
self.suspend.connect("clicked", self.suspend_action)
self.button_box.pack_start(self.suspend)
self.suspend.show()
#Reboot button
self.reboot = gtk.Button("_Reboot")
self.reboot.set_border_width(4)
self.reboot.connect("clicked", self.reboot_action)
self.button_box.pack_start(self.reboot)
self.reboot.show()
#Shutdown button
self.shutdown = gtk.Button("_Power off")
self.shutdown.set_border_width(4)
self.shutdown.connect("clicked", self.shutdown_action)
self.button_box.pack_start(self.shutdown)
self.shutdown.show()
#Create HBox for status label
self.label_box = gtk.HBox()
self.label_box.show()
self.status = gtk.Label()
self.status.show()
self.label_box.pack_start(self.status)
#Create VBox and pack the above HBox's
self.vbox = gtk.VBox()
self.vbox.pack_start(self.button_box)
self.vbox.pack_start(self.label_box)
self.vbox.show()
self.window.add(self.vbox)
self.window.show()
def __init__(self):
self.create_window()
def main():
gtk.main()
if __name__ == "__main__":
go = cb_exit()
main()
[exec] (Exit) {/usr/bin/vsido-exit-fb} <>
[exec] (Exit) {/usr/bin/vsido-exit} <>
chmod +x vsido_up.sh
sudo sh vsido_up.sh
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install -f
sudo mkdir /mnt/iso
sudo fsarchiver -z7 savefs /mnt/iso/buildos.fsa /dev/sdc2
sudo fsarchiver -z8 savefs /mnt/iso/buildos.fsa /dev/sdc2
sudo fsarchiver -j3 -z8 savefs /mnt/iso/buildos.fsa /dev/sdc2
sudo fsarchiver -j3 -z9 savefs /mnt/iso/buildos.fsa /dev/sdc2
sudo fsarchiver -j4 -z9 savefs /mnt/iso/buildos.fsa /dev/sdc2
vastone@vsido:~$ sudo fsarchiver savefs /mnt/iso/buildos.fsa /dev/sdc2
Statistics for filesystem 0
* files successfully processed:....regfiles=92361, directories=10723, symlinks=13608, hardlinks=21, specials=44
* files with errors:...............regfiles=0, directories=0, symlinks=0, hardlinks=0, specials=0
cd /mnt/iso
sudo fsarchiver -j 4 restfs buildos.fsa id=0,dest=/dev/sdc8
vastone@vsido:/mnt/iso$ sudo fsarchiver restfs buildos.fsa id=0,dest=/dev/sdc8
[sudo] password for vastone:
Statistics for filesystem 0
* files successfully processed:....regfiles=90272, directories=10191, symlinks=12503, hardlinks=21, specials=44
* files with errors:...............regfiles=0, directories=0, symlinks=0, hardlinks=0, specials=0
sudo blkid
/dev/sdb8: UUID="c462e964-62a3-4119-ac3b-1a0367905b95" TYPE="swap"
sudo update-grub