When compiling PHP 7 on CentOS 7, i got error
1 |
configure: error: Cannot find libtidy |
To fix this, install libtidy-devel module.
1 |
yum install -y libtidy-devel |
[…]
When compiling PHP 7 on CentOS 7, i got error
1 |
configure: error: Cannot find libtidy |
To fix this, install libtidy-devel module.
1 |
yum install -y libtidy-devel |
[…]
Lets search for available redis packages
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
[root@vps154294 smartfst]# yum search redis Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: mirror.us.leaseweb.net * remi-safe: repo1.ash.innoscale.net ============================================================================================ N/S matched: redis ============================================================================================ collectd-redis.x86_64 : Redis plugin for collectd collectd-write_redis.x86_64 : Redis output plugin for collectd hiredis.x86_64 : Minimalistic C client library for Redis hiredis-devel.x86_64 : Development files for hiredis hiredis-last.x86_64 : Minimalistic C client library for Redis opensips-redis.x86_64 : Redis connector pcp-pmda-redis.x86_64 : Performance Co-Pilot (PCP) metrics for Redis perl-Apache-Session-Redis.noarch : Redis driver for Apache::Session::NoSQL perl-Redis.noarch : Perl binding for Redis database php-nrk-Predis.noarch : PHP client library for Redis php-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store php-phpiredis.x86_64 : Client extension for Redis php54-php-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store php54-php-phpiredis.x86_64 : Client extension for Redis php55-php-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store php55-php-phpiredis.x86_64 : Client extension for Redis php56-php-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store php56-php-phpiredis.x86_64 : Client extension for Redis php70-php-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store php70-php-phpiredis.x86_64 : Client extension for Redis php71-php-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store php71-php-phpiredis.x86_64 : Client extension for Redis php72-php-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store php72-php-phpiredis.x86_64 : Client extension for Redis python-redis.noarch : Python 2 interface to the Redis key-value store python-trollius-redis.noarch : Redis client for the Python event loop PEP3156 for Trollius. python2-django-redis.noarch : Full featured redis cache backend for Django redis-trib.noarch : Cluster management script for Redis rubygem-redis.noarch : A Ruby client library for Redis rubygem-redis-doc.noarch : Documentation for rubygem-redis syslog-ng-redis.x86_64 : redis support for syslog-ng uwsgi-logger-redis.x86_64 : uWSGI - redislog logger plugin uwsgi-router-redis.x86_64 : uWSGI - Plugin for Redis router support redis.x86_64 : A persistent key-value database Name and summary matches only, use "search all" for everything. [root@vps154294 smartfst]# |
In this server, we have PHP 7.0 installed. So we need to install packages for PHP 7.0 Here are the two packages for PHP 7.0
1 2 |
php70-php-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store php70-php-phpiredis.x86_64 : Client extension for Redis |
Install it with yum
1 |
yum install -y php70-php-pecl-redis.x86_64 php70-php-phpiredis.x86_64 |
Now you need to restart web server, generally restarting apache will do. In this cause PHP is […]
Here is Nginx Configuration for vShare youtube clone script
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# enforce NO www if ($host ~* ^www\.(.*)) { set $host_without_www $1; rewrite ^/(.*)$ https://$host_without_www/$1 permanent; } # main server location / { ## RewriteRule ^include/(.*) http://www.vshare.in rewrite ^/admin(.*)$ /index.php permanent; rewrite ^/admin/(.*)$ /index.php permanent; rewrite ^/install(.*)$ /index.php permanent; rewrite ^/install/(.*)$ /index.php permanent; rewrite ^/ubr(.*)$ /index.php permanent; rewrite ^/ubr/(.*)$ /index.php permanent; rewrite ^/cache/ /index.php permanent; rewrite ^/download/(.*) /download.php?video_id=$1 last; rewrite ^/view/(.*)/(.*)/ /view_video.php?id=$1 last; rewrite ^/view/(.*)/(.*) /view_video.php?id=$1 last; rewrite ^/view/(.*)/ /video_redirect.php?id=$1 last; rewrite ^/view/(.*) /video_redirect.php?id=$1 last; rewrite ^/tag/(.*)/(.*) /tag.php?search_string=$1&page=$2 last; rewrite ^/tags/ /tags.php last; rewrite ^/channels/ /channels.php last; rewrite ^/channels /channels.php last; rewrite ^/upload/success/(.*)/(.*)/ /upload_success.php?id=$1&upload_id=$2 last; rewrite ^/upload/embed/ /upload_embed.php last; rewrite ^/upload/embed /upload_embed.php last; rewrite ^/upload/ /upload.php last; rewrite ^/upload /upload.php last; rewrite ^/channel/(.*)/(.*)/recent/(.*)/ /video.php?category=recent&chid=$1&page=$3 last; rewrite ^/channel/(.*)/(.*)/viewed/(.*)/ /video.php?category=viewed&chid=$1&page=$3 last; rewrite ^/channel/(.*)/(.*)/(.*)/(.*) /video.php?chid=$1&category=$2&view_type=$3&page=$4 last; rewrite ^/channel/(.*)/(.*) /channel_details.php?id=$1 last; rewrite ^/friends/recommend/(.*)/ /recommend_friends.php?video_id=$1 last; rewrite ^/friends/invite/ /invite_friends.php?username=$1&page=$2 last; rewrite ^/friends/(.*) /friends.php?page=$1 last; rewrite ^/members/(.*)/(.*)/ /members.php?sort=$1&page=$2 last; rewrite ^/members/(.*) /members.php?page=$1 last; rewrite ^/detailed/recent/(.*) /video.php?category=recent&page=$1&view_type=detailed last; rewrite ^/detailed/viewed/(.*) /video.php?category=viewed&page=$1&view_type=detailed last; rewrite ^/detailed/discussed/(.*) /video.php?category=discussed&page=$1&view_type=detailed last; rewrite ^/detailed/favorites/(.*) /video.php?category=favorites&page=$1&view_type=detailed last; rewrite ^/detailed/rated/(.*) /video.php?category=rated&page=$1&view_type=detailed last; rewrite ^/detailed/featured/(.*) /video.php?category=featured&page=$1&view_type=detailed last; rewrite ^/recent/(.*) /video.php?category=recent&page=$1 last; rewrite ^/viewed/(.*) /video.php?category=viewed&page=$1 last; rewrite ^/edit/video/(.*) /video_edit.php?video_id=$1 last; rewrite ^/discussed/(.*) /video.php?category=discussed&page=$1 last; rewrite ^/favorites/(.*) /video.php?category=favorites&page=$1 last; rewrite ^/rated/(.*) /video.php?category=rated&page=$1 last; rewrite ^/featured/(.*) /video.php?category=featured&page=$1 last; rewrite ^/rss/new/ /rss.php?type=new last; rewrite ^/rss/comments/ /rss.php?type=comments last; rewrite ^/rss/views/ /rss.php?type=views last; rewrite ^/featured/(.*) /video.php?category=featured&page=$1 last; rewrite ^/group/new/ /group_new.php last; rewrite ^/group/(.*)/join/(.*) /group_invite_confirm.php?group_url=$1&key=$2 last; rewrite ^/group/(.*)/members/(.*) /group_members.php?group_url=$1&page=$2 last; rewrite ^/group/(.*)/videos/(.*) /group_videos.php?group_url=$1&page=$2 last; rewrite ^/group/(.*)/add/(.*) /group_add_videos.php?group_url=$1&page=$2 last; rewrite ^/group/(.*)/fav/(.*) /group_add_fav_videos.php?group_url=$1&page=$2 last; rewrite ^/group/(.*)/topic/(.*) /group_postss.php?group_url=$1&topic_id=$2 last; rewrite ^/group/(.*)/invite/(.*) /invite_members.php?group_url=$1 last; rewrite ^/group/(.*)/edit/(.*) /group_edit.php?group_url=$1 last; rewrite ^/group/(.*)/ /group_home.php?group_url=$1 last; rewrite ^/groups/(.*)/(.*)/(.*) /groups.php?chid=$1&page=$3 last; rewrite ^/groups/(.*)/(.*) /groups.php?chid=$1&page=$2 last; rewrite ^/login/ /login.php last; rewrite ^/login /login.php last; rewrite ^/logout/ /logout.php last; rewrite ^/logout /logout.php last; rewrite ^/signup/ /signup.php last; rewrite ^/signup /signup.php last; rewrite ^/family_filter/ /family_filter.php last; rewrite ^/family_filter /family_filter.php last; rewrite ^/pages/(.*).html /show_page.php?name=$1 last; rewrite ^/v/(.*)/ /video_embed.php?video_id=$1 last; rewrite ^/v/(.*) /video_embed.php?video_id=$1 last; rewrite ^/verify/user/(.*)/(.*)/(.*)/ /user_signup_verify.php?u=$1&i=$2&k=$3 last; rewrite ^/verify/email/(.*)/(.*)/(.*)/ /confirm_email.php?u=$1&i=$2&k=$3 last; rewrite ^/confirm/friend/(.*)/(.*) /friend_accept.php?id=$1&key=$2 last; rewrite ^/search/(.*)/(.*) /search_videos.php?search_string=$1&page=$2 last; rewrite ^/search/(.*) /search_videos.php?search_string=$1&page=1 last; rewrite ^/style/(.*)/ /style.php?css=$1 last; rewrite ^/style/(.*) /style.php?css=$1 last; rewrite ^/privacy/ /user_privacy.php?css=$1 last; rewrite ^/password/ /password_change.php last; rewrite ^/video_response_upload/(.*) /upload_video_response.php?vid=$1 last; rewrite ^/response/(.*)/videos/(.*) /video_responses.php?video_id=$1&page=$2 last; rewrite ^/verify/response/(.*)/(.*)/(.*)/ /video_response_verify.php?u=$1&i=$2&k=$3 last; rewrite ^/([^/\.]+)/account/ /myaccount.php last; rewrite ^/([^/\.]+)/favorites/(.*) /user_favorites.php?user_name=$1&page=$2 last; rewrite ^/([^/\.]+)/playlist/(.*)/(.*) /user_playlist.php?user_name=$1&page=$2 last; rewrite ^/([^/\.]+)/playlist/(.*) /user_playlist.php?user_name=$1&page=1 last; rewrite ^/([^/\.]+)/friends/videos/(.*) /user_friends_videos.php?user_name=$1&page=$2 last; rewrite ^/([^/\.]+)/friends/favorites/(.*) /user_friends_favourites.php?user_name=$1&page=$2 last; rewrite ^/([^/\.]+)/friends/(.*) /user_friends.php?user_name=$1&page=$2 last; rewrite ^/([^/\.]+)/pubic/(.*)$ /user_videos.php?user_name=$1&type=public&page=$2 last; rewrite ^/([^/\.]+)/private/(.*)$ /user_videos.php?user_name=$1&type=private&page=$2 last; rewrite ^/([^/\.]+)/groups/(.*)$ /user_groups.php?user_name=$1&page=$2 last; rewrite ^/([^/\.]+)/edit/(.*)$ /user_profile_edit.php?user_name=$1 last; rewrite ^/([^/\.]+)/unsubscribe/(.*)$ /email_unsubscribe.php?user_name=$1&vkey=$2 last; # Just in case we missed something :) error_page 404 /index.php?src=404; try_files $uri $uri/ =404; } |
https://gist.github.com/serverok/1b300ff880db6aca59de0e42d86dadcb https://www.vshare.in […]
To install Redis on CentOS, run yum install redis Start redis with
1 |
service redis start |
Set redis to start on boot
1 |
systemctl enable redis |
Verify redis is running with
1 2 3 |
[root@vps154294 ~]# netstat -antp | grep redis tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 32367/redis-server [root@vps154294 ~]# |
[…]
On a server, starting MySQL i get following error
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
[root@3blogger log]# cat mysqld.log 170102 21:34:02 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 2017-01-02 21:34:02 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2017-01-02 21:34:02 0 [Note] /usr/sbin/mysqld (mysqld 5.6.24-72.2) starting as process 8048 ... 2017-01-02 21:34:02 8048 [Note] Plugin 'FEDERATED' is disabled. 2017-01-02 21:34:02 8048 [Note] InnoDB: Using atomics to ref count buffer pool pages 2017-01-02 21:34:02 8048 [Note] InnoDB: The InnoDB memory heap is disabled 2017-01-02 21:34:02 8048 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2017-01-02 21:34:02 8048 [Note] InnoDB: Memory barrier is not used 2017-01-02 21:34:02 8048 [Note] InnoDB: Compressed tables use zlib 1.2.3 2017-01-02 21:34:02 8048 [Note] InnoDB: Using Linux native AIO 2017-01-02 21:34:02 8048 [Note] InnoDB: Using CPU crc32 instructions 2017-01-02 21:34:02 8048 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2017-01-02 21:34:02 8048 [Note] InnoDB: Completed initialization of buffer pool 2017-01-02 21:34:02 8048 [Note] InnoDB: Highest supported file format is Barracuda. 2017-01-02 21:34:02 8048 [Note] InnoDB: Log scan progressed past the checkpoint lsn 644142666552 2017-01-02 21:34:02 8048 [Note] InnoDB: Database was not shutdown normally! 2017-01-02 21:34:02 8048 [Note] InnoDB: Starting crash recovery. 2017-01-02 21:34:02 8048 [Note] InnoDB: Reading tablespace information from the .ibd files... 2017-01-02 21:34:02 8048 [ERROR] InnoDB: space header page consists of zero bytes in tablespace ./3blogger/wp_wfNet404s.ibd (table 3blogger/wp_wfNet404s) 2017-01-02 21:34:02 8048 [Note] InnoDB: Page size:1024 Pages to analyze:64 2017-01-02 21:34:02 8048 [Note] InnoDB: Page size: 1024, Possible space_id count:0 2017-01-02 21:34:02 8048 [Note] InnoDB: Page size:2048 Pages to analyze:32 2017-01-02 21:34:02 8048 [Note] InnoDB: Page size: 2048, Possible space_id count:0 2017-01-02 21:34:02 8048 [Note] InnoDB: Page size:4096 Pages to analyze:16 2017-01-02 21:34:02 8048 [Note] InnoDB: Page size: 4096, Possible space_id count:0 2017-01-02 21:34:02 8048 [Note] InnoDB: Page size:8192 Pages to analyze:8 2017-01-02 21:34:02 8048 [Note] InnoDB: Page size: 8192, Possible space_id count:0 2017-01-02 21:34:02 8048 [Note] InnoDB: Page size:16384 Pages to analyze:4 2017-01-02 21:34:02 8048 [Note] InnoDB: Page size: 16384, Possible space_id count:0 2017-01-02 21:34:02 7fcef14617e0 InnoDB: Operating system error number 2 in a file operation. InnoDB: The error means the system cannot find the path specified. InnoDB: If you are installing InnoDB, remember that you must create InnoDB: directories yourself, InnoDB does not create them. InnoDB: Error: could not open single-table tablespace file ./3blogger/wp_wfNet404s.ibd InnoDB: We do not continue the crash recovery, because the table may become InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it. InnoDB: To fix the problem and start mysqld: InnoDB: 1) If there is a permission problem in the file and mysqld cannot InnoDB: open the file, you should modify the permissions. InnoDB: 2) If the table is not needed, or you can restore it from a backup, InnoDB: then you can remove the .ibd file, and InnoDB will do a normal InnoDB: crash recovery and ignore that table. InnoDB: 3) If the file system or the disk is broken, and you cannot remove InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf InnoDB: and force InnoDB to continue crash recovery here. 170102 21:34:02 mysqld_safe mysqld from pid file /var/lib/mysql/3blogger.3blogger.com.pid ended [root@3blogger log]# |
This was because the server used InnoDB database engine and my.cnf was not configured properly. First i removed the log files.
1 2 |
mkdir ~/mysql-problem-2017-01-03 mv /var/lib/mysql/ib_* ~/mysql-problem-2017-01-03 |
Now i edit /etc/my.cnf as follows
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
[root@3blogger etc]# cat /etc/my.cnf [mysqld] datadir=/var/lib/mysql user=mysql # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 port = 3306 socket=/var/lib/mysql/mysql.sock back_log = 50 max_connections = 100 max_connect_errors = 10 table_open_cache = 2048 max_allowed_packet = 16M binlog_cache_size = 1M max_heap_table_size = 64M read_buffer_size = 2M read_rnd_buffer_size = 16M sort_buffer_size = 8M join_buffer_size = 8M thread_cache_size = 8 thread_concurrency = 8 query_cache_size = 64M query_cache_limit = 2M ft_min_word_len = 4 default-storage-engine = MYISAM thread_stack = 192K transaction_isolation = REPEATABLE-READ tmp_table_size = 64M log-bin=mysql-bin binlog_format=mixed slow_query_log long_query_time = 2 server-id = 1 key_buffer_size = 32M bulk_insert_buffer_size = 64M myisam_sort_buffer_size = 128M myisam_max_sort_file_size = 10G myisam_repair_threads = 1 myisam_recover innodb_additional_mem_pool_size = 16M innodb_buffer_pool_size = 2G innodb_data_file_path = ibdata1:10M:autoextend innodb_file_io_threads = 4 innodb_thread_concurrency = 16 innodb_flush_log_at_trx_commit = 1 innodb_log_buffer_size = 8M innodb_log_file_size = 256M innodb_log_files_in_group = 3 innodb_max_dirty_pages_pct = 90 innodb_lock_wait_timeout = 120 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash [myisamchk] key_buffer_size = 512M sort_buffer_size = 512M read_buffer = 8M write_buffer = 8M [mysqlhotcopy] interactive-timeout [mysqld_safe] open-files-limit = 8192 log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid [root@3blogger etc]# |
This MySQL config is based on /usr/share/doc/mysql-server-5.1.73/my-innodb-heavy-4G.cnf provided my MySQL.
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@server12 ~]# rpm -q --filesbypkg mysql-server-5.1.73-7.el6.x86_64 | grep .cnf mysql-server /usr/share/doc/mysql-server-5.1.73/my-huge.cnf mysql-server /usr/share/doc/mysql-server-5.1.73/my-innodb-heavy-4G.cnf mysql-server /usr/share/doc/mysql-server-5.1.73/my-large.cnf mysql-server /usr/share/doc/mysql-server-5.1.73/my-medium.cnf mysql-server /usr/share/doc/mysql-server-5.1.73/my-small.cnf mysql-server /usr/share/mysql/my-huge.cnf mysql-server /usr/share/mysql/my-innodb-heavy-4G.cnf mysql-server /usr/share/mysql/my-large.cnf mysql-server /usr/share/mysql/my-medium.cnf mysql-server /usr/share/mysql/my-small.cnf [root@server12 ~]# |
You can also see this […]
By default, device work in Mass Storage mode
1 2 3 |
root@fwhlin:~ # lsusb | grep Huawei Bus 009 Device 007: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode) root@fwhlin:~ # |
Create file
1 |
vi /etc/usb_modeswitch.d/12d1:1f01 |
With following content
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
root@fwhlin:~ # cat /etc/usb_modeswitch.d/12d1:1f01 # Huawei E3531s-2 - switch to modem mode instead of HiLink CDC-Ether mode TargetVendor=0x12d1 TargetProduct=0x1f01 # switch to 12d1:1001 (modem mode, 3 virtual serial ports) #MessageContent="55534243123456780000000000000011062000000100000000000000000000" # switch to 12d1:14dc (default HiLink CDC-Ether mode) MessageContent="55534243123456780000000000000a11062000000000000100000000000000" # switch to 12d1:1442 (debug mode with 2 virtual serial ports) # MessageContent="55534243000000000000000000000011060000000000000000000000000000" root@fwhlin:~ # |
To switch to Modem Mode, run
1 |
usb_modeswitch -I -W -c /etc/usb_modeswitch.d/12d1\:1f01 |
If it worked, device will change to modem mode
1 2 3 |
root@fwhlin:~ # lsusb | grep Hu Bus 009 Device 003: ID 12d1:14dc Huawei Technologies Co., Ltd. root@fwhlin:~ # |
Notice it changed name, also device ID changed to 14dc. ifconfig will list a new network interface usb0
1 2 3 4 5 6 7 |
usb0 Link encap:Ethernet HWaddr 9a:82:a1:91:20:32 inet6 addr: fe80::9882:a1ff:fe91:2032/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:236 errors:0 dropped:0 overruns:0 frame:0 TX packets:98 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:111083 (111.0 KB) TX bytes:15412 (15.4 KB) |
[…]
After connecting, i get following in lsusb
1 2 3 |
root@fwhlin:~ # lsusb | grep 12d1 Bus 009 Device 004: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode) root@fwhlin:~ # |
It says “Mass storage mode”. If you check demesg, you will see
1 2 3 4 5 6 7 8 9 10 |
[ 2385.775523] usb 9-2: New USB device found, idVendor=12d1, idProduct=1f01 [ 2385.775527] usb 9-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2385.775529] usb 9-2: Product: HUAWEI Mobile [ 2385.775531] usb 9-2: Manufacturer: HUAWEI [ 2385.775532] usb 9-2: SerialNumber: FFFFFFFFFFFFFFFF [ 2385.837882] usb-storage 9-2:1.0: USB Mass Storage device detected [ 2385.838108] scsi15 : usb-storage 9-2:1.0 [ 2386.858462] scsi 15:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 [ 2386.859826] sr1: scsi-1 drive [ 2386.859946] sr 15:0:0:0: Attached scsi CD-ROM sr1 |
Last line says, device mounted as “/dev/sr1”
1 2 3 |
root@fwhlin:~ # df -h | grep sr /dev/sr1 4.3M 4.3M 0 100% /media/boby/MobileWiFi root@fwhlin:~ # |
Changing Device Mode to Modem I found some information about the device in file
1 2 3 |
sudo -s cd /usr/share/usb_modeswitch tar zxvf configPack.tar.gz |
1 2 3 4 5 6 7 |
root@fwhlin:~ # cat /usr/share/usb_modeswitch/12d1:1f01 # Huawei E353 (3.se) and others TargetVendor=0x12d1 TargetProductList="14db,14dc" MessageContent="55534243123456780000000000000011062000000101000100000000000000" NoDriverLoading=1 root@fwhlin:~ # |
It says device can operate as products “14db” and “14dc”. […]
By default files are displayed with “Icon View” I prefer list view. To set default view in Nemo, go to
1 |
Edit -> Preferences -> Views (tab) -> View new folders using -> List View |
[…]
To disable hot corner in linux mint, go to settings Go to advanced settings Click Hot Corners, From the dorp down, select Disabled. […]
upgrade redmine upgrade redmine using svn install redmine redmine init script start mongrel on server boot install thin web server redmine server move Redmine Tips redmine refresh repository on commit […]