Sunday, December 13, 2020

w3m, sed y scripts en bash

Material interesante acerca de scripting en bash, sed y w3m
Wikidates - Having fun on the bash command line
https://www.youtube.com/watch?v=NYGI5xh4Llc

Saturday, May 9, 2020

Formateando discos en Linux


Aqui viene todo lo que necesite'

lsblk
parted

lo unico que tuve que agregar fue reformatear en el ambiente grafico con Disks y ponerle NTFS ya que me aparecia el disco sin permisos

Luego entonces...


jorge@jorge-negra:~$ sudo fdisk -l

Disk /dev/sda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders, total 160836480 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x101e9f2f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    96422129    48211033+   7  HPFS/NTFS/exFAT
/dev/sda2        96423934   160826714    32201390+   5  Extended
/dev/sda5       158079663   160826714     1373526   82  Linux swap / Solaris
/dev/sda6        96423936   158078975    30827520   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ca524

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   488396799   244197376    7  HPFS/NTFS/exFAT
 

jorge@jorge-negra:~$ mkdir /media/usb-drive
mkdir: cannot create directory ‘/media/usb-drive’: Permission denied
 

jorge@jorge-negra:~$ sudo mkdir /media/usb-drive
 

jorge@jorge-negra:~$ mount /dev/sdb1 /media/usb-drive/
mount: only root can do that
 

jorge@jorge-negra:~$ sudo mount /dev/sdb1 /media/usb-drive/
 

jorge@jorge-negra:~$ cd /media/usb-drive/
 

jorge@jorge-negra:/media/usb-drive$ ls
DSC01434.JPG  $RECYCLE.BIN  System Volume Information
 

jorge@jorge-negra:/media/usb-drive$ mount
/dev/sda6 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=jorge)
/dev/sdb1 on /media/usb-drive type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
 

jorge@jorge-negra:/media/usb-drive$ umount /media/usb-drive
umount: /media/usb-drive is not in the fstab (and you are not root)


jorge@jorge-negra:/media/usb-drive$ sudo umount /media/usb-drive
umount: /media/usb-drive: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
 

jorge@jorge-negra:/media/usb-drive$ sudo umount /media/usb-drive
umount: /media/usb-drive: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
 

jorge@jorge-negra:/media/usb-drive$ cd ~
 

jorge@jorge-negra:~$ sudo umount /media/usb-drive
 

jorge@jorge-negra:~$

Monday, April 6, 2020

Semana de Cuarentena

Domingo 5-Abril-2020

Pelicula: Un Dia Perfecto
   Where Have All The Flowers Gone? - The Kingston Trio

Pelicula: The Insult

Ambas me gustaron mucho

Lunes 6
Hasta que la muerte los juntó (This Is Where I Leave You)

Martes 7
El sol que abrasa

Miercoles 8

Jueves 9

Viernes 10

Sabado 11-Abril-2020
  • Cazando Salvajes
  • Poco Ortodoxa
  • One of us
Domingo 12-Abril-2020
  • Love,Wedding Repeat